-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-production.yml
48 lines (46 loc) · 1.02 KB
/
docker-compose-production.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
version: '3.7'
services:
ui:
restart: always
build:
context: ./led-frontend
target: 'production-stage'
args:
- HOSTNAME=$HOSTNAME
- WLED_WS=$WLED_WS
- WLED_UI=$WLED_UI
- WLED_API=$WLED_API
- MOPIDY_WS=$MOPIDY_WS
- MOPIDY_UI=$MOPIDY_UI
- MOPIDY_API=$MOPIDY_API
env_file:
- .env
ports:
- '80:80'
# TODO activate production stage, when flaky threading is fixed
# api:
# restart: always
# build:
# context: ./led-api-server
# dockerfile: ./deploy/Dockerfile
# target: 'production-stage'
# env_file:
# - .env
# ports:
# - '8888:8888'
api:
restart: always
build:
context: ./led-api-server
dockerfile: ./deploy/Dockerfile
target: 'develop-stage'
env_file:
- .env
ports:
- "8888:8000"
command: >-
bash -c "
cd /home/docker/code/app
&& python3 manage.py migrate
&& python3 manage.py runserver 0.0.0.0:8000
"