-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.24 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
# Copyright 2021 Ioannis Papadopoulos
# SPDX-License-Identifier: AGPL-3.0-or-later
version: '3.7'
services:
backend:
build:
context: ./backend
dockerfile: backend.Dockerfile
volumes:
- ./backend:/app/backend
restart: always
privileged: true
ports:
- "8000:8000"
expose:
- "8000"
stdin_open: true
tty: true
environment:
- SECRET_KEY=${SECRET_KEY}
command: >
sh -c "python3 manage.py makemigrations
&& python3 manage.py migrate
&& python3 manage.py runserver 0.0.0.0:8000"
frontend:
image: halverneus/static-file-server
volumes:
- ./package_info_ui/build/:/web
restart: always
ports:
- "3000:8080"
environment:
- CORS=true
depends_on:
- backend
collector:
build:
context: ./package_info_collector
dockerfile: collector.Dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- backend
privileged: true
stdin_open: true
tty: true
network_mode: host