-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (53 loc) · 1.23 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
services:
nginx:
image: nginx:alpine
network_mode: host
volumes:
- ./nginx.template.conf:/etc/nginx/conf.d/nginx.template
env_file:
- ./.env
environment:
- D=$
command: ["/bin/sh" , "-c" , "envsubst < /etc/nginx/conf.d/nginx.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"]
rest-server:
build:
context: .
dockerfile: ./rest-server/Dockerfile
network_mode: host
volumes:
- ${CDN_VOLUME_PATH}:${CDN_STORAGE_PATH}
depends_on:
- postgres
web:
build:
context: .
dockerfile: ./web/Dockerfile
network_mode: host
env_file:
- ./.env
cdn-server:
build:
context: .
dockerfile: ./cdn-server/Dockerfile
network_mode: host
volumes:
- ${CDN_VOLUME_PATH}:${CDN_STORAGE_PATH}
websocket:
build:
context: .
dockerfile: ./websocket/Dockerfile
network_mode: host
depends_on:
- postgres
postgres:
image: postgis/postgis:latest
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "${DB_PORT}:${DB_PORT}"
volumes:
pgdata: