-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-setup.yml
68 lines (65 loc) · 1.41 KB
/
user-setup.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
version: "3.5"
services:
app:
build:
dockerfile: devops/build/Dockerfile
context: "."
container_name: tone-track-demo
networks:
- tts_demo_network
ports:
- "5002:5000"
depends_on:
- postgres
- redis
deploy:
resources:
limits:
memory: 2024M
cpus: '0.75'
volumes:
- ./:/app
command:
sh -c "
cd '/app';
gunicorn -w 2 -k gthread --bind 0.0.0.0:5002 wsgi:app --timeout 500"
postgres:
image: postgres:15-alpine
container_name: postgres-demo
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
restart: always
networks:
- tts_demo_network
ports:
- "5432:5432"
redis:
image: redis:7.4.1
container_name: redis-demo
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
networks:
- tts_demo_network
restart: always
command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ]
ports:
- "6379:6379"
nginx:
image: nginx:1.20.1
container_name: nginx-demo
networks:
- tts_demo_network
ports:
- "80:80"
restart: always
volumes:
- ./nginx/:/etc/nginx/conf.d/
- ./nginx/conf/demo:/etc/nginx/conf.d/
depends_on:
- app
networks:
tts_demo_network:
driver: bridge