Added a Dockerfile and docker-compose to this project

The compose requieres the printer image too
This commit is contained in:
2024-05-29 14:45:43 +01:00
parent 0c5c2e82f6
commit dfa7bfeec9
4 changed files with 44 additions and 4 deletions
+36
View File
@@ -0,0 +1,36 @@
networks:
esilva-faxnetwork:
name: esilva-faxnetwork
driver: bridge
services:
esilva-fax:
hostname: esilva-fax
build: ./
image: esilva-fax
container_name: esilva-fax-container
cap_add:
- NET_ADMIN
networks:
- esilva-faxnetwork
volumes:
- ./data.db:/data.db
- ./src/config.yml:/etc/fax/config.yml
ports:
- "8083:8083"
tmpfs:
- /tmp
restart: unless-stopped
esilva-printer:
hostname: esilva-printer
build: ../gothermal/
image: esilva-printer
container_name: esilva-printer-container
cap_add:
- NET_ADMIN
networks:
- esilva-faxnetwork
tmpfs:
- /tmp
restart: unless-stopped