-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.32 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
version: '3.8'
services:
database:
container_name: pigeonhole-database
image: postgres:13.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=${SQL_USER}
- POSTGRES_PASSWORD=${SQL_PASSWORD}
- POSTGRES_DB=${SQL_DATABASE}
ports:
- 5432:5432
env_file:
- .env
backend:
container_name: pigeonhole-backend
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend/:/usr/src/app/backend/
- ./scripts/:/usr/src/app/scripts/
#- submissions:/usr/src/app/backend/uploads/submissions/
- /var/run/docker.sock:/var/run/docker.sock
- ${SUBMISSIONS_PATH}:/usr/src/app/backend/static/submissions/
- ${ARTIFACTS_PATH}:/usr/src/app/backend/static/artifacts/
ports:
- 8000:8000
env_file:
- .env
frontend:
container_name: pigeonhole-frontend
build: ./frontend
command: npm run dev
volumes:
- ./frontend/:/usr/src/app
- /usr/src/app/node_modules
ports:
- 3000:3000
env_file:
- .env
registry:
image: "registry:latest"
restart: always
container_name: registry
ports:
- "5000:5000"
volumes:
- registrydata:/data
volumes:
postgres_data:
submissions:
external: true
registrydata: