-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
60 lines (58 loc) · 1.3 KB
/
docker-compose.prod.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
version: '1.0'
services:
uni-tasks-frontend:
image: ghcr.io/josefjantzen/uni-tasks-frontend
depends_on:
- uni-tasks-go
build:
context: .
dockerfile: frontend/Dockerfile
container_name: uni-tasks-frontend-server
hostname: frontend-server
networks:
- uni-tasks-net
ports:
- 8082:8080
uni-tasks-go:
image: ghcr.io/josefjantzen/uni-tasks-backend
depends_on:
- uni-tasks-db
build:
context: .
dockerfile: backend/Dockerfile
container_name: uni-tasks-rest-server
hostname: rest-server
networks:
- uni-tasks-net
ports:
- 8081:8080
volumes:
- ${BACKEND_CONFIG}:/config/config.json
deploy:
restart_policy:
condition: on-failure
environment:
- DEBUG=false
uni-tasks-db:
image: cockroachdb/cockroach:latest-v20.1
container_name: uni-tasks-db
hostname: db
networks:
- uni-tasks-net
ports:
- 26257:26257
- 8180:8080
volumes:
- ${DB_CERTS_DIR}:/certs
- db-1:/cockroach/cockroach-data
command: start-single-node --certs-dir=/certs
deploy:
restart_policy:
condition: on-failure
environment:
- COCKROACH_DATABASE=${DB_DATABASE}
volumes:
db-1:
networks:
uni-tasks-net:
driver: bridge