-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.48 KB
/
docker-compose.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
---
services:
web:
image: uobristol/temmpo-django
container_name: web
build:
context: .
dockerfile: ./deploy/Dockerfile-rhel
args:
- "RHEL_ORG_ID=${RHEL_ORG_ID}"
- "RHEL_ACTIVATION_KEY=${RHEL_ACTIVATION_KEY}"
env_file: .env
ports:
- "59099:59099"
# command: ['/bin/bash', '/srv/entrypoints/serve.sh']
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:59099"]
# interval: 30s
# timeout: 45s
# retries: 100
links:
- redis:redis
depends_on:
- redis
volumes:
- web-logs:/srv/log/
- web-media:/srv/media/
- web-static:/srv/static/
# https://hub.docker.com/_/redis
redis:
restart: always
image: redis:5.0.3 # Installed on RHEL 8 on site infrastructure
ports:
- "6379:6379"
env_file: .env
# apache:
# container_name: nginx
# restart: always
# build: ./nginx/
# image: uobristol/temmpo-nginx
# ports:
# - "8080:8080"
# links:
# - web:web
# depends_on:
# web:
# condition: service_healthy
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8080/static/css/temmpo.css"]
# interval: 5s
# timeout: 45s
# retries: 200
# env_file: .env
# volumes:
# - nginx-logs:/mnt/temmpo_nginx/log/
# - web-media:/mnt/temmpo_web/media/:ro
# - web-static:/mnt/temmpo_web/static/:ro
volumes:
# nginx-logs:
web-logs:
web-media:
web-static: