forked from cityvizor/cityvizor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
95 lines (88 loc) · 2.1 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
version: "3.8"
services:
proxy:
image: nginx:1.15.8-alpine
container_name: nginx.cityvizor.cesko.digital
ports:
- "4200:80"
volumes:
- ./nginx:/etc/nginx:ro
environment:
NGINX_HOST: cityvizor.cesko.digital
NGINX_PORT: 80
backend-kotlin:
image: backend-kotlin
build: server-kotlin/.
container_name: backend.cityvizor.cesko.digital
env_file:
- .env
environment:
JDBC_URL: jdbc:postgresql://db.cityvizor.cesko.digital:5432/cityvizor
depends_on:
- postgres
- proxy
cityvizor-server:
image: cityvizor-server
build:
context: ./server
target: prod
command: -w db.cityvizor.cesko.digital -a -m server
container_name: server.cityvizor.cesko.digital
env_file:
- .env
environment:
NODE_ENV: local
volumes:
- ./data:/user/src/app/data
depends_on:
- postgres
- proxy
cityvizor-worker:
image: cityvizor-server
build:
context: ./server
target: prod
command: -w db.cityvizor.cesko.digital -a -m worker
container_name: worker.cityvizor.cesko.digital
environment:
NODE_ENV: local
volumes:
- ./data:/user/src/app/data
depends_on:
- postgres
cityvizor-client:
image: cityvizor-client
build:
context: ./client
target: prod
container_name: client.cityvizor.cesko.digital
environment:
NODE_ENV: local
depends_on:
- proxy
landing-page:
image: cityvizor-landing-page
build:
context: ./landing-page
target: prod
container_name: landing.cityvizor.cesko.digital
environment:
NODE_ENV: local
depends_on:
- proxy
postgres:
image: postgres:11.1
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
container_name: db.cityvizor.cesko.digital
environment:
POSTGRES_DB: cityvizor
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pass
volumes:
- ./database/demo_dump.sql:/docker-entrypoint-initdb.d/demo_dump.sql
ports:
- 5432:5432