-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (94 loc) · 2.2 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
services:
watchtower:
image: containrrr/watchtower
command:
- "--label-enable"
- "--interval"
- "60"
- "--include-stopped"
volumes:
- /root/.docker/config.json:/config.json
- /var/run/docker.sock:/var/run/docker.sock
db:
image: postgres:latest
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- ./init_schemas.sql:/docker-entrypoint-initdb.d/init_schemas.sql
networks:
- app-network
goose:
image: deretz/endurace_reporting:goose.latest
build:
context: .
dockerfile: Dockerfile.goose
environment:
DB_USER: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_PASSWORD}
DB_HOST: db
DB_PORT: 5432
entrypoint: ["/bin/sh", "/app/migration/wait-for-db.sh"]
depends_on:
- db
networks:
- app-network
back:
image: deretz/endurace_reporting:backend.latest
build:
context: ./back
environment:
SECRET : ${SECRET}
DATABASE_URL: ${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
depends_on:
- db
ports:
- "8000:8000"
volumes:
- back_workout:/app/back/workout
networks:
- app-network
go_server:
image: deretz/endurace_reporting:go_server.latest
build:
context: .
dockerfile: Dockerfile.go_server
environment:
POSTGRES_URL: ${POSTGRES_URL}
SECRET : ${SECRET}
DATABASE_URL: ${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
depends_on:
- db
ports:
- "8080:8080"
networks:
- app-network
front:
image: deretz/endurace_reporting:frontend.latest
build:
context: ./front
depends_on:
- db
- back
environment:
API_ENDPOINT: ${API_ENDPOINT}
API_AUTH: ${API_AUTH}
DB_HOST: db
DB_USER: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_PASSWORD}
DB_NAME: ${POSTGRES_DB}
DB_PORT: "5432"
ports:
- "8501:8501"
networks:
- app-network
volumes:
pg_data:
back_workout:
networks:
app-network:
driver: bridge