-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 958 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
services:
base-image:
image: home-server-remote/base-image
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./:/app
dev:
container_name: home-server-remote-dev
image: home-server-remote/base-image
ports:
- 8000:8000
environment:
- FLASK_ENV=dev
- GPIOZERO_PIN_FACTORY=mock
volumes:
- ./:/app
command: gunicorn -c /app/config/gunicorn/dev.py service.app:flask_app
restart: unless-stopped
test:
image: home-server-remote/base-image
container_name: test
environment:
- FLASK_ENV=test
volumes:
- ./:/app
prod:
container_name: home-server-remote-prod
image: home-server-remote/base-image
ports:
- 80:5656
environment:
- FLASK_ENV=prod
- GPIOZERO_PIN_FACTORY=native
volumes:
- ./:/app
command: gunicorn -c /app/config/gunicorn/production.py service.app:flask_app
restart: unless-stopped