blah2/docker-compose.yml

45 lines
855 B
YAML
Raw Normal View History

2023-05-04 11:25:37 +00:00
version: '3'
networks:
blah2:
2023-05-04 11:25:37 +00:00
external: true
services:
blah2:
restart: always
build: .
image: blah2
depends_on:
- blah2_api
2023-05-04 11:25:37 +00:00
volumes:
- ./config:/blah2/config
- /opt/blah2/save:/blah2/save
- /dev/shm:/dev/shm:rw
- /dev/usb:/dev/usb:rw
2023-05-04 11:25:37 +00:00
network_mode: host
privileged: true
2024-03-23 15:59:16 +00:00
command: "/blah2/bin/blah2 -c config/config.yml"
2023-05-04 11:25:37 +00:00
container_name: blah2
blah2_web:
2023-05-04 11:25:37 +00:00
restart: always
image: httpd:2.4
ports:
- 49152:80
volumes:
- ./html:/usr/local/apache2/htdocs
networks:
- blah2
2023-05-04 11:25:37 +00:00
container_name: blah2-web
blah2_api:
restart: always
build: ./api
image: blah2_api
volumes:
- ./config:/usr/src/app/config
2023-05-04 11:25:37 +00:00
network_mode: host
2024-03-23 15:59:16 +00:00
command: "node server.js /usr/src/app/config/config.yml"
2023-05-04 11:25:37 +00:00
container_name: blah2-api