-
Notifications
You must be signed in to change notification settings - Fork 180
/
docker-compose.yml
122 lines (121 loc) · 3.12 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
services:
web:
image: nginx:alpine
restart: unless-stopped
ports:
- 8000:80
volumes:
- .:/var/www:delegated
- ./site.conf:/etc/nginx/conf.d/default.conf
links:
- php
php:
user: '${USER_ID}:${GROUP_ID}'
restart: unless-stopped
image: grafikart/php:php8.2-2
volumes:
- .:/var/www:delegated
depends_on:
- db
environment:
PHP_IDE_CONFIG: serverName=grafikart
REDIS_HOST: redis
MAILER_DSN: smtp://mail:1025?encryption=null&auth_mode=null
DATABASE_URL: postgresql://grafikart:grafikart@db:5432/grafikart?serverVersion=12&chartset=utf8
MERCURE_PUBLISH_URL: http://mercure/.well-known/mercure
MESSENGER_TRANSPORT_DSN: redis://redis:6379/messages
MESSENGER_TRANSPORT_FAILED_DSN: redis://redis:6379/messages_failed
MEILISEARCH_HOST: "meilisearch:7700"
db:
restart: unless-stopped
image: postgres:12-alpine
ports:
- 5432:5432 # On expose le port pour pouvoir inspecter la base pendant la phase de développement
environment:
POSTGRES_PASSWORD: grafikart
POSTGRES_USER: grafikart
POSTGRES_DB: grafikart
TZ: Europe/Paris
PGTZ: Europe/Paris
volumes:
- db-data:/var/lib/postgresql/data
- ./var:/var/www/var
redis:
restart: unless-stopped
image: redis:7-alpine
ports:
- 6379:6379
meilisearch:
restart: unless-stopped
image: getmeili/meilisearch:v1.0
environment:
MEILI_ENV: development
MEILI_MASTER_KEY:
ports:
- 7700:7700
volumes:
- search-data:/meili_data
mercure:
restart: unless-stopped
image: dunglas/mercure
environment:
SERVER_NAME: ':80'
MERCURE_EXTRA_DIRECTIVES: 'cors_origins http://grafikart.localhost:8000'
MERCURE_SUBSCRIBER_JWT_KEY: MercureSubscriberJWTSecretForDebugPurpose
MERCURE_PUBLISHER_JWT_KEY: MercurePublisherJWTSecretForDebugPurpose
GLOBAL_OPTIONS: debug
ports:
- 8001:80
messenger:
user: '${USER_ID}:${GROUP_ID}'
image: grafikart/php:php8.2-2
volumes:
- .:/var/www:delegated
depends_on:
- db
restart: unless-stopped
command: ['php', 'bin/console', 'messenger:consume', 'async', '--limit=10', '-vv']
environment:
MESSENGER_TRANSPORT_DSN: redis://redis:6379/messages
MESSENGER_TRANSPORT_FAILED_DSN: redis://redis:6379/messages_failed
# Dev tools
adminer:
image: adminer
environment:
APP_ENV: dev
ADMINER_DESIGN: pepa-linha
ADMINER_DEFAULT_SERVER: db
ports:
- 8888:8080
mail:
image: mailhog/mailhog
ports:
- 1080:8025
redis-gui:
image: rediscommander/redis-commander
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
bun:
user: '${USER_ID}:${GROUP_ID}'
image: oven/bun
command: bun run dev
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
ports:
- 3000:3000
dbtest:
image: postgres:12
environment:
POSTGRES_PASSWORD: test
POSTGRES_USER: test
POSTGRES_DB: test
volumes:
db-data:
driver: local
search-data:
driver: local
networks:
dev: