generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (38 loc) · 979 Bytes
/
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
version: '3'
services:
federatedcode_db:
image: postgres:16
env_file:
- docker.env
volumes:
- federatedcode_db_data:/var/lib/postgresql/data/
federatedcode:
build: .
command: /bin/sh -c "
apt-get update && apt-get install -y gunicorn &&
python manage.py collectstatic --no-input --verbosity 0 --clear &&
python manage.py migrate &&
gunicorn federatedcode.wsgi:application -u nobody -g nogroup --bind :8000 --timeout 600 --workers 8"
env_file:
- docker.env
expose:
- 8000
ports:
- "8000:8000"
volumes:
- static:/var/federatedcode/static/
- /etc/federatedcode/:/etc/federatedcode/
depends_on:
- federatedcode_db
federatedcode_nginx:
image: nginx
env_file:
- docker.env
volumes:
- ./etc/nginx/conf.d/:/etc/nginx/conf.d
depends_on:
- federatedcode
volumes:
federatedcode_db_data:
federatedcode_static:
federatedcode: