-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (69 loc) · 1.77 KB
/
docker-compose.yml
File metadata and controls
73 lines (69 loc) · 1.77 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
rcamp-uwsgi:
image: rcamp-uwsgi2
build:
context: .
container_name: rcamp-uwsgi
hostname: ${HOSTNAME}
#command: ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
env_file:
- .env
environment:
- UWSGI_UID=${UWSGI_UID}
- UWSGI_GID=${UWSGI_GID}
volumes:
- ./rcamp:/opt/rcamp
- ./ldapdb:/opt/ldapdb
- /var/lib/sss/pipes:/var/lib/sss/pipes:rw
- ./rcamp-pam/nsswitch.conf:/etc/nsswitch.conf
- ./rcamp-pam/pam.d:/etc/pam.d
- ./rcamp-pam/raddb:/etc/raddb
- ./static-content:/opt/static
- ${MEDIA_DIR}:/opt/media
- ./rcamp-logs:/opt/logs
# ports:
# - "80:8000"
# - "443:443"
#- "5678:5678" # Debugger port
depends_on:
database:
condition: service_healthy
logging:
driver: syslog
database:
image: mysql:8.4
container_name: database
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=rcamp1712
volumes:
- database:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -ppassword"]
interval: 10s
timeout: 5s
retries: 5
nginx:
hostname: ${HOSTNAME}
image: nginx:1.20.0
container_name: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/uwsgi_params:/etc/nginx/uwsgi_params:ro
- ${SSL_CERT}:/etc/nginx/certs/rcamp.crt:ro
- ${SSL_KEY}:/etc/nginx/certs/rcamp.key:ro
- ${MEDIA_DIR}:/var/www/media:ro
- ./static-content:/var/www/static:ro
- ./nginx-logs:/var/logs/nginx
ports:
- "80:80"
- "443:443"
logging:
driver: syslog
depends_on:
- rcamp-uwsgi
volumes:
static-content:
media-uploads:
rcamp-logs:
database: