This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (80 loc) · 1.79 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
version: "2.2"
# ipv6 is not supported in version 3
services:
varnish:
restart: unless-stopped
image: faust.cs.fau.de:5000/cached
init: true
build: cached
command: "-a :9090 -F -f /etc/varnish/default.vcl -T :6082 -t 120 -p thread_pool_min=50 -p thread_pool_max=1000 -p thread_pool_timeout=120 -i varnish -s malloc,512M"
ports:
- "9090:9090"
volumes: []
links:
- api
- frontend
external_links: []
networks:
- backend
- default
api_deps:
image: faust.cs.fau.de:5000/api_deps
build:
context: missiond
dockerfile: Dockerfile.deps
api:
restart: unless-stopped
image: faust.cs.fau.de:5000/missiond
init: true
build: missiond
command: gunicorn --config gunicorn.py app:app
#command: /bin/sh -c 'sleep 10000'
links:
- postgres
expose:
- "5000"
networks:
- backend
frontend_deps:
image: faust.cs.fau.de:5000/frontend_deps
build:
context: frontend
dockerfile: Dockerfile.deps
frontend:
restart: unless-stopped
image: faust.cs.fau.de:5000/frontend
init: true
build: frontend
expose:
- "3000"
networks:
- backend
postgres:
restart: unless-stopped
image: postgres:16-alpine
volumes:
- ./data/:/var/lib/postgresql/data/
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: missions
command: -p 11111
expose:
- "11111"
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "pg_isready -d missions"]
interval: 10s
timeout: 10s
retries: 20
start_period: 10s
networks:
backend:
name: backend
default:
enable_ipv6: true
ipam:
driver: default
config:
- subnet: "fd42:d0ce:666::/64"