mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-25 06:04:06 +00:00
Refactor CI, Build docker on push
This commit is contained in:
52
docker/docker-compose.yml
Normal file
52
docker/docker-compose.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: invoiceshelf/invoiceshelf-php
|
||||
restart: unless-stopped
|
||||
working_dir: /var/www/
|
||||
networks:
|
||||
- invoiceshelf
|
||||
|
||||
db:
|
||||
image: mariadb:lts
|
||||
restart: always
|
||||
volumes:
|
||||
- db:/var/lib/mysql
|
||||
# If you want to persist data on the host, comment the line above this one...
|
||||
# and uncomment the line under this one.
|
||||
#- ./docker-compose/db/data:/var/lib/mysql:rw,delegated
|
||||
environment:
|
||||
MYSQL_USER: invoiceshelf
|
||||
MYSQL_PASSWORD: invoiceshelf
|
||||
MYSQL_DATABASE: invoiceshelf
|
||||
MYSQL_ROOT_PASSWORD: invoiceshelf
|
||||
ports:
|
||||
- '33006:3306'
|
||||
networks:
|
||||
- invoiceshelf
|
||||
|
||||
nginx:
|
||||
image: invoiceshelf/invoiceshelf-nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 80:80
|
||||
networks:
|
||||
- invoiceshelf
|
||||
|
||||
cron:
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: docker/cron.dockerfile
|
||||
image: invoiceshelf-cron
|
||||
volumes:
|
||||
- ../:/var/www
|
||||
networks:
|
||||
- invoiceshelf
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
||||
networks:
|
||||
invoiceshelf:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user