-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
147 lines (143 loc) · 3.87 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3.4'
x-variables: &x-variables
APP_DEBUG: 1
APP_ENV: dev
APP_SECRET: c95ab68cbfba3232e79d72ebae567424
POSTGRES_USER: medleybox
POSTGRES_PASSWORD: medleybox
MAILER_DSN: smtp://mailhog:1025
volumes:
minio-data:
postgres-data:
redis-data:
frontend-data:
webapp-data:
tmp-data:
meilisearch-data:
networks:
medley:
external: true
services:
pgadmin:
image: dpage/pgadmin4
restart: always
networks:
- medley
environment:
PGADMIN_DEFAULT_EMAIL: admin@medleybox.dev
PGADMIN_DEFAULT_PASSWORD: medleybox
ports:
- "5050:80"
nginx:
image: ghcr.io/medleybox/nginx:master
restart: always
environment:
APP_ENV: dev
SERVICES: MAILHOG ENCORE FRONTEND
build:
context: ../nginx/
dockerfile: ../nginx/Dockerfile
depends_on:
- "encore"
- "webapp"
- "mailhog"
- "frontend"
volumes:
- ./public/build:/var/www/public/build
networks:
- medley
ports:
- "80:80"
- "443:443"
encore:
image: ghcr.io/medleybox/encore:master
environment:
NODE_ENV: dev
extra_hosts:
- "medleybox.local:0.0.0.0"
networks:
- medley
volumes:
- ./assets:/app/assets
- ./public/build:/app/public/build
build:
context: ./
dockerfile: docker/encore/Dockerfile
frontend:
image: node:18-alpine3.17
extra_hosts:
- "medleybox.local:0.0.0.0"
entrypoint: 'sh'
working_dir: '/app'
command:
- '/app/bin/start-frontend-service'
volumes:
- ./bin:/app/bin
- ../frontend:/app
- frontend-data:/app/node_modules
environment:
NODE_ENV: development
PUBLIC_HOST: medleybox.local
networks:
- medley
webapp:
image: ghcr.io/medleybox/webapp:master
build:
context: ./
dockerfile: docker/app/Dockerfile
restart: always
environment: *x-variables
networks:
- medley
volumes:
- ./bin/run-tests:/var/www/bin/run-tests:ro
- ./bin/phpunit:/var/www/bin/phpunit:ro
- ./config/packages:/var/www/config/packages
- ./docker/app/dev.ini:/usr/local/etc/php/conf.d/webapp.ini
- ./src:/var/www/src
- ./tests:/var/www/tests
- ./templates:/var/www/templates
- ./docker/app/dev.ini:/usr/local/etc/php/dev.ini
- ./public/build:/var/www/public/build
- ./.php_cs.php:/var/www/.php_cs.php:ro
- ./phpstan.neon:/var/www/phpstan.neon:ro
- ./phpunit.xml.dist:/var/www/phpunit.xml.dist:ro
- webapp-data:/var/www/vendor
redis:
image: redis:alpine
restart: always
command: redis-server --save "" --appendonly "no"
tmpfs:
- /var/lib/redis
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
networks:
- medley
volumes:
- redis-data:/data
mailhog:
image: mailhog/mailhog
networks:
- medley
db:
image: postgres:15-alpine3.17
restart: always
environment: *x-variables
networks:
- medley
volumes:
- postgres-data:/var/lib/postgresql/data
meilisearch:
image: getmeili/meilisearch:nightly
ports:
- 7700:7700
environment:
MEILI_MASTER_KEY: medleybox
networks:
- medley
volumes:
- meilisearch-data:/meili_data