-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (68 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
75 lines (68 loc) · 1.34 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
version: "3.9"
services:
backend:
build:
context: .
dockerfile: ./web/Dockerfile
build:
context: .
dockerfile: ./web/Dockerfile
container_name: flask-backend
env_file:
- ./.env
restart: unless-stopped
depends_on:
- redis
environment:
- REDIS_HOST=redis
networks:
- webnet
worker:
build:
context: .
dockerfile: ./web/Dockerfile
build:
context: .
dockerfile: ./web/Dockerfile
container_name: routine-worker
env_file:
- ./.env
restart: unless-stopped
depends_on:
- redis
command: ["python", "main.py"]
environment:
- REDIS_HOST=redis
networks:
- webnet
otp:
image: openjdk:17-jdk-slim
container_name: otp-server
working_dir: /otp
volumes:
- ./otp:/otp
command: >
java -Xmx2G -jar /otp/otp-server.jar --load .
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: redis
restart: unless-stopped
ports:
- "6379:6379"
networks:
- webnet
cloudflared:
image: cloudflare/cloudflared:latest
command: tunnel run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
restart: unless-stopped
networks:
- webnet
dns:
- 1.1.1.1
- 8.8.8.8
networks:
webnet:
driver: bridge