-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
62 lines (57 loc) · 1.07 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
version: "3"
services:
squid-db:
image: postgres:15
container_name: squid-db
restart: always
networks:
- devouch-be
environment:
POSTGRES_DB: squid
POSTGRES_PASSWORD: postgres
ports:
- "${DB_PORT}:5432"
# command: ["postgres", "-c", "log_statement=all"]
shm_size: 1gb
volumes:
- db-data:/var/lib/postgresql/data
devouch:
build:
context: .
dockerfile: Dockerfile
container_name: devouch-be
restart: always
networks:
- devouch-be
env_file:
- .env
ports:
- "${GQL_PORT}:4350"
depends_on:
- squid-db
caddy:
image: caddy:2.7.5
container_name: caddy
restart: always
networks:
- devouch-be
ports:
- 80:80
- 443:443
- 2019:2019
- 2020:2020
env_file:
- .env
environment:
GQL_URL: ${GQL_URL:-}
volumes:
- caddy_data:/data
- caddy_config:/config
- ./Caddyfile:/etc/caddy/Caddyfile
volumes:
caddy_data:
caddy_config:
db-data:
networks:
devouch-be:
driver: bridge