-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.5 KB
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
services:
# This is only required if you're running it stand-alone; on the deployment it shares a VM,
# so the nginx file has to be used by the actual VM-level Nginx.
nginx:
container_name: physics-workload-nginx
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- type: bind
source: "${PROJECT_PATH}/nginx/physics_workload.conf"
target: "/etc/nginx/conf.d/default.conf"
- type: bind
source: "${PROJECT_PATH}/logs/"
target: "/var/www/physics-workload/logs/"
- type: bind
source: "${PROJECT_PATH}/staticfiles/"
target: "/var/www/physics-workload/staticfiles/"
- type: bind
source: "/etc/tls/certs/"
target: "/etc/tls/certs/"
- type: bind
source: "/etc/tls/private/"
target: "/etc/tls/private/"
restart: unless-stopped
depends_on:
- web
web:
container_name: physics-workload-django
build:
dockerfile: Dockerfile
context: .
ports:
- "8008:8000"
env_file:
- "./.env.default"
- "./.env"
volumes:
- type: bind
source: "${PROJECT_PATH}/data/"
target: "/var/www/physics-workload/data/"
- type: bind
source: "${PROJECT_PATH}/staticfiles/"
target: "/var/www/physics-workload/staticfiles/"
- type: bind
source: "${PROJECT_PATH}/logs/"
target: "/var/www/physics-workload/logs/"
command:
- "bash"
- "docker-entrypoint.sh"
restart: unless-stopped