-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.81 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
version: "4"
volumes:
dump-db:
networks:
dump:
services:
dump-webserver:
image: dumptec/nginx:1.21.dev
hostname: dump-webserver
container_name: dump-webserver
working_dir: /app
user: "dump"
networks:
- dump
restart: "no"
depends_on:
- dump-api
ports:
- "80:8080"
- "443:8443"
volumes:
- ./app:/app
- ./docker/nginx/dev.conf:/opt/bitnami/nginx/conf/server_blocks/default.conf:ro
- ./docker/nginx/ssl/server.crt://etc/ssl/localhost.crt:ro
- ./docker/nginx/ssl/server.key://etc/ssl/localhost.key:ro
dump-api:
image: dumptec/php-fpm:dev-8.2-latest
hostname: dump-api
container_name: dump-api
working_dir: /app
user: "dump"
dns: 1.1.1.1
ports:
- "22001:22"
extra_hosts:
- "host.docker.internal:${PHPFPM_XDEBUG_HOST_IP}"
networks:
- dump
restart: "no"
volumes:
- ./app:/app
depends_on:
dump-database:
condition: service_healthy
dump-database:
image: postgres:14
hostname: dump-database
container_name: dump-database
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE}
- PGDATA=/var/lib/postgresql/data/pgdata
- PGTZ=${TIMEZONE}
ports:
- "5431:5432"
networks:
- dump
restart: "no"
volumes:
- dump-db:/var/lib/postgresql/data/pgdata
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5