-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
57 lines (52 loc) · 1.15 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
version: '3.7'
services:
postgres:
container_name: gms-postgres-container
image: postgres:11
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data
restart: always
ports:
- 10000:5432
environment:
POSTGRES_PASSWORD: root
mongo:
container_name: gms-mongo-container
image: mongo:latest
volumes:
- ./docker/mongo/data:/data/db
restart: always
ports:
- 10001:27017
redis:
container_name: gms-redis
image: redis:latest
restart: always
ports:
- "10002:6379"
backend: &backend
image: registry.gitlab.com/vtr0n/playmusicstats:DJANGO_latest
command: "./entrypoint.sh"
env_file: .env
restart: always
ports:
- "10003:8000"
depends_on:
- postgres
- mongo
celery_worker:
container_name: gms-celery
<<: *backend
command: "celery worker -A backend.settings -l ERROR"
ports: []
depends_on:
- redis
- postgres
- mongo
frontend:
image: registry.gitlab.com/vtr0n/playmusicstats:VUE_latest
command: "nginx -g 'daemon off;'"
env_file: .env
restart: always
ports:
- "10004:80"