This repository was archived by the owner on Apr 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
64 lines (60 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
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.6'
services:
db:
ports:
- 54320:5432
# https://hub.docker.com/r/neimheadh/phppgadmin
phppgadmin:
image: neimheadh/phppgadmin:latest
labels:
traefik.enable: true
traefik.http.services.pma.loadbalancer.server.port: 80
traefik.http.routers.pma.rule: "Host(`pga.localhost.tv`)"
traefik.http.routers.pma.entrypoints: web
ports:
- "80"
environment:
POSTGRES_HOST: ${PG_HOST}
POSTGRES_PORT: ${PG_PORT}
POSTGRES_USER: ${PG_USER}
POSTGRES_PASS: ${PG_PASSWORD}
restart: always
volumes:
- ./.docker/phppgadmin/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
depends_on:
- db
networks:
sfdemopg:
aliases:
- pga.localhost.tv
maildev:
image: djfarrelly/maildev
labels:
traefik.enable: true
traefik.http.services.maildev.loadbalancer.server.port: 80
traefik.http.routers.maildev.rule: "Host(`maildev.localhost.tv`)"
ports:
- 80
- 25
networks:
sfdemopg:
aliases:
- maildev.localhost.tv
traefik:
image: traefik:v2.3
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- sfdemopg
volumes:
pgdata: #Keep database on local docker storage