37 lines
668 B
YAML
37 lines
668 B
YAML
version: "3.7"
|
|
services:
|
|
|
|
piswitch-api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-2
|
|
ports:
|
|
- 5000:5000
|
|
container_name: piswitch-api
|
|
image: piswitch/api
|
|
restart: unless-stopped
|
|
tty: true
|
|
volumes:
|
|
- ./:/code/
|
|
working_dir: /code/src/
|
|
networks:
|
|
- piswitch-network
|
|
|
|
piswitch-scheduler:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-1
|
|
container_name: piswitch-scheduler
|
|
image: piswitch/scheduler
|
|
restart: unless-stopped
|
|
tty: true
|
|
volumes:
|
|
- ./:/code/
|
|
working_dir: /code/src/
|
|
networks:
|
|
- piswitch-network
|
|
|
|
|
|
networks:
|
|
piswitch-network:
|
|
driver: bridge |