forked from apisite/app-enfist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (39 loc) · 900 Bytes
/
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
version: '2.1'
services:
app:
image: ${DC_IMAGE}
command:
./apisite --db_debug --db_schema rpc --http_addr :8080
networks:
- web
restart: always
labels:
- "traefik.enable=true"
- "traefik.backend=${APP_SITE}"
- "traefik.frontend.rule=Host:${APP_SITE}"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
- PGHOST=${PGHOST}
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- PGSSLMODE=${PGSSLMODE}
- PGAPPNAME=${PGAPPNAME}
build:
context: .
cmd:
image: ${DC_IMAGE}
environment:
- PGHOST=${PGHOST}
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- PGSSLMODE=${PGSSLMODE}
networks:
- web
networks:
web:
external:
name: ${DCAPE_NET}