-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (92 loc) · 1.82 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
version: '3'
services:
app:
build:
dockerfile: docker/Dockerfile
context: .
target: php
restart: unless-stopped
user: '${UID:-0}:${GID:-0}'
depends_on:
- database
- mailhog
- mjml
- minio
- clamav
env_file: .env.docker.local
profiles:
- prod
nginx:
build:
context: .
dockerfile: ./docker/Dockerfile
target: nginx
restart: unless-stopped
depends_on:
- app
environment:
PHP_BACKEND: app
ports:
- '8080:80'
profiles:
- prod
database:
image: postgres:14-alpine
environment:
POSTGRES_DB: psuh-db
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_USER: symfony
ports:
- '5432:5432'
volumes:
- ./volumes/psuh-db:/var/lib/postgresql/data:rw
profiles:
- local
- prod
minio:
image: quay.io/minio/minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: symfony
MINIO_ROOT_PASSWORD: ${S3_STORAGE_PASSWORD:-password}
ports:
- '9090:9000'
- '9091:9001'
volumes:
- ./volumes/minio:/data:rw
profiles:
- local
- prod
mailhog:
image: mailhog/mailhog
ports:
- '1025:1025'
- '8025:8025'
profiles:
- local
- prod
mjml:
image: adrianrudnik/mjml-server:2.3.0
restart: on-failure
ports:
- '8081:80'
profiles:
- local
- prod
clamav:
restart: on-failure
image: clamav/clamav
ports:
- '3310:3310'
profiles:
- local
test-database:
image: postgres:14-alpine
environment:
POSTGRES_DB: test-psuh-db
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_USER: test-symfony
ports:
- '5433:5432'
profiles:
- test