-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.4 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
version: "3.7"
# Service Definitions
services:
db:
image: "amineo/t2-stats-db:v0.2.0"
build:
context: .
dockerfile: ./build/postgres/Dockerfile
environment:
POSTGRES_DB: "t2_stats"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- psqldata:/var/lib/postgresql/data
networks:
- internal
deploy:
labels:
- traefik.enable=false
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
parser:
image: "amineo/t2-stats-parser:v0.5.0"
build:
context: .
dockerfile: ./build/go-t2-stat-parser/Dockerfile
environment:
DATABASE_URL: "postgres://${POSTGRES_USER}:{POSTGRES_PASSWORD}@db:5432/t2_stats"
FTP_HOST: "${FTP_HOST}"
FTP_USER: "${FTP_USER}"
FTP_PW: "${FTP_PW}"
FTP_PATH: "${FTP_PATH}"
depends_on:
- db
networks:
- internal
deploy:
labels:
- traefik.enable=false
mode: replicated
replicas: 1
api:
image: "amineo/t2-stats-api:v0.0.26"
build:
context: .
dockerfile: ./build/api/Dockerfile
environment:
NODE_ENV: "production" # set as default in image
APP_NAME: "T2StatsAPI" # set as default in image
depends_on:
- db
networks:
- internal
- external
volumes:
psqldata:
networks:
external:
internal: