-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (76 loc) · 2.32 KB
/
docker-compose.yml
File metadata and controls
76 lines (76 loc) · 2.32 KB
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
version: '3'
volumes:
postgres_vol:
files_vol:
services:
postgres:
image: postgres
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_PASSWORD: postgres
volumes:
- "./database/init:/docker-entrypoint-initdb.d"
- "postgres_vol:/var/lib/postgresql/data"
data-service-migrate:
image: boxfuse/flyway
command: -url=jdbc:postgresql://database:5432/studit_data -user=postgres -password=postgres migrate
volumes:
- "./database/migrations/data-service:/flyway/sql"
links:
- "postgres:database"
restart: on-failure
data-service:
build: "./backend/src/data-service/"
links:
- "postgres:database"
restart: always
auth-service-migrate:
image: boxfuse/flyway
command: -url=jdbc:postgresql://database:5432/studit_auth -user=postgres -password=postgres migrate
volumes:
- "./database/migrations/auth-service:/flyway/sql"
links:
- "postgres:database"
restart: on-failure
auth-service:
build: "./backend/src/auth-service/"
links:
- "postgres:database"
- "data-service:data-service"
restart: always
file-service-migrate:
image: boxfuse/flyway
command: -url=jdbc:postgresql://database:5432/studit_file -user=postgres -password=postgres migrate
volumes:
- "./database/migrations/file-service:/flyway/sql"
links:
- "postgres:database"
restart: on-failure
file-service:
build: "./backend/src/file-service/"
links:
- "postgres:database"
restart: always
volumes:
- "files_vol:/go/src/file-service/files"
main-service:
build: "./backend/src/main-service/"
ports:
- "8080:8080"
links:
- "data-service:data-service"
- "auth-service:auth-service"
restart: always
frontend:
build: "./frontend"
ports:
- "80:80"
- "443:443"
restart: always
links:
- "main-service:main-service"
volumes:
- "files_vol:/usr/share/nginx/files/"
- "/etc/letsencrypt/:/etc/letsencrypt/"