31 lines
505 B
YAML
31 lines
505 B
YAML
|
version: "3.7"
|
||
|
services:
|
||
|
|
||
|
web:
|
||
|
container_name: nginx
|
||
|
restart: unless-stopped
|
||
|
image: nginx:alpine
|
||
|
ports:
|
||
|
- 81:80
|
||
|
depends_on:
|
||
|
- api
|
||
|
volumes:
|
||
|
- ./src:/usr/share/nginx/html
|
||
|
networks:
|
||
|
- piswitch-network
|
||
|
|
||
|
api:
|
||
|
container_name: raspapi
|
||
|
image: appserver/raspapi
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
- 5000:5000
|
||
|
tty: true
|
||
|
working_dir: /code/src/
|
||
|
networks:
|
||
|
- piswitch-network
|
||
|
|
||
|
networks:
|
||
|
piswitch-network:
|
||
|
driver: bridge
|