-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (88 loc) · 2.34 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
version: '3.5'
services:
db:
image: mysql:5.7
container_name: participatory-db
command: --explicit_defaults_for_timestamp --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
env_file: .env
ports:
- 3306:3306
volumes:
- ./docker/data/mysql:/var/lib/mysql
- ./docker/config/mysql/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
networks:
- default
webapp:
build:
context: .
dockerfile: docker/config/webapp/Dockerfile
container_name: participatory-webapp
expose:
- 9004
volumes:
- .:/var/www/html
- ./docker/config/webapp/php/ini/limitation.ini:/usr/local/etc/php/conf.d/limitation.ini
- ./docker/config/webapp/php/ini/security.ini:/usr/local/etc/php/conf.d/security.ini
- ./docker/config/webapp/php/ini/upload.ini:/usr/local/etc/php/conf.d/upload.ini
- ./docker/config/webapp/php/ini/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini
- ./docker/config/webapp/php/ini/postal.ini:/usr/local/etc/php/conf.d/postal.ini
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 1m30s
timeout: 10s
retries: 3
env_file: .env
depends_on:
- db
networks:
- default
nginx:
image: fphgov/nginx
container_name: participatory-nginx
networks:
- default
ports:
- 80:80
- 443:443
volumes:
- ./docker/config/nginx:/etc/nginx/conf.d
- ./docker/data/nginx/logs:/var/log/nginx
- ./:/var/www/html
- ./docker/config/cert:/opt/cert
depends_on:
- db
- webapp
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
minio:
image: bitnami/minio:2022-debian-11
ports:
- 9000:9000
- 9002:9001
volumes:
- ./data/minio:/data
env_file:
- .env
environment:
MINIO_ACCESS_KEY: ~
MINIO_SECRET_KEY: ~
MINIO_DEFAULT_BUCKETS: 'private,shared:public'
dozzle:
container_name: participatory-dozzle
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9999:8080
libpostal:
image: fphgov/libpostal:latest
environment:
- LISTEN_PORT=9501
expose:
- 9501
networks:
default:
driver: bridge