forked from mhzawadi/invoiceplane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
51 lines (48 loc) · 1.51 KB
/
docker-compose-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.5'
# docker stack deploy --compose-file stack-invoiceplane.yml invoiceplane
volumes:
invoiceplane_data:
mariadb_10_4:
services:
proxyv2:
image: traefik:v2.5 # The official Traefik docker image
command:
- "--api.insecure=true"
- "--providers.docker"
ports:
- "80:80" # The HTTP port
- "443:443" # The HTTP port
- "8181:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
labels:
- "traefik.enable=false"
invoiceplane:
image: mhzawadi/invoiceplane:dev-code
volumes:
- invoiceplane_data:/var/www/html/uploads
- /Users/matt/git/code-InvoicePlane:/var/www/html
environment:
- TZ=utc
- MYSQL_HOST=mariadb_10_4
- MYSQL_USER=InvoicePlane
- MYSQL_PASSWORD=invoiceplane
- MYSQL_DB=InvoicePlane
- IP_URL=http://invoiceplane.docker.local
- DISABLE_SETUP=false
labels:
- "traefik.http.routers.invoiceplane.rule=Host(`invoiceplane.docker.local`)"
- "traefik.http.routers.invoiceplane.service=invoiceplane"
- "traefik.http.services.invoiceplane.loadbalancer.server.port=80"
mariadb_10_4:
# MySQL 5.7
image: mariadb:10.4.10
volumes:
- mariadb_10_4:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=mysql_password
- MYSQL_DATABASE=InvoicePlane
- MYSQL_USER=InvoicePlane
- MYSQL_PASSWORD=invoiceplane
labels:
- "traefik.enable=false"