-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
78 lines (73 loc) · 1.87 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
77
78
version: "3"
services:
upa-mongo:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-mongo
container_name: "upa-mongo"
ports:
- "27017-27019:27017-27019"
expose:
- "27017-27019"
volumes:
- "mongo-data:/data/db"
- "./mongo/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:z"
restart: "always"
upa-postgres:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-postgres
container_name: "upa-postgres"
volumes:
- "postgres-data:/var/lib/postgresql/data"
ports:
- "5432:5432"
expose:
- "5432"
restart: "always"
upa-importer:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-importer
container_name: "upa-importer"
command: "bash /importer/entrypoint.sh"
ports:
- "4200:4200"
expose:
- "4200"
depends_on:
- upa-postgres
- upa-mongo
restart: "always"
upa-api:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-api
container_name: "upa-api"
command: "bash /go/src/upa/api/entrypoint.sh"
depends_on:
- upa-postgres
- upa-mongo
ports:
- "8080:8080"
expose:
- "8080"
environment:
- GIN_MODE=release
restart: "always"
upa-app:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-ui
container_name: "upa-app"
command: "bash /entrypoint.sh"
depends_on:
- upa-api
ports:
- "80:80"
expose:
- "80"
restart: "always"
volumes:
mongo-data:
postgres-data: