-
Notifications
You must be signed in to change notification settings - Fork 16
/
prod.yml
47 lines (47 loc) · 1.24 KB
/
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
services:
vite:
environment:
NODE_ENV: "production"
nginx:
image: nginx:stable
restart: always
volumes:
- ./deploy/nginx/nginx-haproxy.conf:/etc/nginx/nginx.conf
- ./deploy/nginx/uwsgi_params:/etc/nginx/uwsgi_params
- ./deploy/nginx/well-known:/srv/.well-known
- ./docker/shared/logs/nginx:/var/log/nginx
- ./docker/shared/static:/srv/static
- ./docker/shared/media:/srv/media
- ./docker/shared/library:/library
- sockets:/shared/sockets
command: ["nginx", "-g", "daemon off;"]
ports:
- "80:80"
server:
build:
context: ./django
args:
REQUIREMENTS_FILE: requirements.txt
UBUNTU_MIRROR: "mirror.it.ubc.ca"
RUN_SCRIPT: "./deploy/prod.sh"
image: comses/server:${RELEASE_VERSION}
restart: always
volumes:
- ./docker/shared:/shared
- sockets:/shared/sockets
environment:
DJANGO_SETTINGS_MODULE: "core.settings.production"
ports:
- "127.0.0.1:9191:9191" # uWSGI stats server
depends_on:
vite:
condition: service_completed_successfully
elasticsearch:
condition: service_healthy
volumes:
sockets:
driver: local
esdata1:
driver: local
esdata2:
driver: local