-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
102 lines (101 loc) · 2.51 KB
/
compose.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3"
services:
nv_migrations:
# build:
# context: .
# dockerfile: ./Dockerfile
# image: nonoviumvideo/nonoviumvideo:latest
image: nonovium/vidcms:0.1.0
volumes:
- ./:/home/nonovium.video/nonoviumvideo/
environment:
ENABLE_UWSGI: 'no'
ENABLE_NGINX: 'no'
ENABLE_CELERY_SHORT: 'no'
ENABLE_CELERY_LONG: 'no'
ENABLE_CELERY_BEAT: 'no'
ADMIN_USER: 'admin'
ADMIN_EMAIL: 'admin@localhost'
#ADMIN_PASSWORD: 'uncomment_and_set_password_here'
command: "./deploy/docker/prestart.sh"
restart: on-failure
depends_on:
redis:
condition: service_healthy
db:
condition: service_healthy
nv_web:
# image: nonoviumvideo/nonoviumvideo:latest
# build:
# context: .
# dockerfile: ./Dockerfile
# image: nonoviumvideo/nonoviumvideo:latest
image: nonovium/vidcms:0.1.0
deploy:
replicas: 1
ports:
- "80:80"
volumes:
- ./:/home/nonovium.video/nonoviumvideo/
environment:
ENABLE_CELERY_BEAT: 'no'
ENABLE_CELERY_SHORT: 'no'
ENABLE_CELERY_LONG: 'no'
ENABLE_MIGRATIONS: 'no'
depends_on:
- nv_migrations
nv_celery_beat:
# build:
# context: .
# dockerfile: ./Dockerfile
# image: nonoviumvideo/nonoviumvideo:latest
image: nonovium/vidcms:0.1.0
volumes:
- ./:/home/nonovium.video/nonoviumvideo/
environment:
ENABLE_UWSGI: 'no'
ENABLE_NGINX: 'no'
ENABLE_CELERY_SHORT: 'no'
ENABLE_CELERY_LONG: 'no'
ENABLE_MIGRATIONS: 'no'
depends_on:
- redis
nv_celery_worker:
# build:
# context: .
# dockerfile: ./Dockerfile
# image: nonoviumvideo/nonoviumvideo:latest
image: nonovium/vidcms:0.1.0
deploy:
replicas: 1
volumes:
- ./:/home/nonovium.video/nonoviumvideo/
environment:
ENABLE_UWSGI: 'no'
ENABLE_NGINX: 'no'
ENABLE_CELERY_BEAT: 'no'
ENABLE_MIGRATIONS: 'no'
depends_on:
- nv_migrations
db:
image: postgres:13
volumes:
- ../postgres_data:/var/lib/postgresql/data/
restart: always
environment:
POSTGRES_USER: nonoviumvideo
POSTGRES_PASSWORD: nonoviumvideo
POSTGRES_DB: nonoviumvideo
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nonoviumvideo"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: "redis:alpine"
restart: always
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 30s
timeout: 10s
retries: 3