-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (69 loc) · 1.54 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
version: "3.5"
services:
app:
build:
dockerfile: devops/build/Dockerfile
context: "."
image: alpaca00/tone-track-local:latest
networks:
- tts_network
env_file: .env
ports:
- "5002:5000"
depends_on:
- postgres
- redis
deploy:
resources:
limits:
memory: 2024M
cpus: '0.75'
command: sh -c "cd '/app' && python3 download_nltk_data.py && gunicorn -w 2 -k gthread --bind 0.0.0.0:5002 wsgi:app --timeout 500"
postgres:
image: postgres:15-alpine
restart: always
networks:
- tts_network
env_file: .env
# volumes:
# - ./postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:7.4.1
env_file: .env
networks:
- tts_network
restart: always
command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ]
ports:
- "6379:6379"
# volumes:
# - ./redis_data:/data
nginx:
image: fabiocicerchia/nginx-lua:1.27.2-ubuntu24.04
env_file: .env
networks:
- tts_network
ports:
- "80:80"
- "443:443"
restart: always
volumes:
- ./nginx/:/etc/nginx/conf.d/
- ./nginx/conf/:/etc/nginx/conf.d/
# - ./certbot/www:/var/www/certbot/:ro
depends_on:
- app
# certbot:
# image: certbot/certbot:latest
# networks:
# - tts_network
# volumes:
# - ./certbot/www/:/var/www/certbot/:rw
# - ./certbot/conf/:/etc/letsencrypt/:rw
# depends_on:
# - nginx
networks:
tts_network:
driver: bridge