forked from Grafikart/Grafikart.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
116 lines (115 loc) · 3.02 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
version: '3.3'
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.1-1
volumes:
- .:/var/www:delegated
depends_on:
- db
environment:
PHP_IDE_CONFIG: serverName=grafikart
APP_ENV: dev
REDIS_URL: redis://redis
TYPESENSE_KEY: typesensekey
TYPESENSE_HOST: typesense:8108
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
MERCURE_SUBSCRIBER_KEY: mercure_subscriber_mercure_subscriber_mercure_subscriber
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:6-alpine
typesense:
restart: unless-stopped
image: typesense/typesense:0.18.0
environment:
TYPESENSE_DATA_DIR: /data
TYPESENSE_API_KEY: typesensekey
volumes:
- search-data:/data
mercure:
restart: unless-stopped
image: dunglas/mercure:v0.10.4
environment:
CORS_ALLOWED_ORIGINS: 'http://grafikart.localhost:8000'
JWT_KEY: mercure_subscriber
PUBLISHER_JWT_KEY: mercure_publisher
ALLOW_ANONYMOUS: 0
ports:
- 8001:80
messenger:
user: '${USER_ID}:${GROUP_ID}'
image: grafikart/php:php8.1-1
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"
node:
user: '${USER_ID}:${GROUP_ID}'
build:
context: ./tools/docker/node
command: yarn run dev
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
ports:
- 3000:3000
volumes:
db-data:
driver: local
search-data:
driver: local
networks:
dev: