-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
61 lines (56 loc) · 1.5 KB
/
docker-compose.yaml
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
version: '3.1'
services:
my-app:
build: "./.docker"
labels:
- "traefik.enable=true"
- "traefik.http.routers.my-app-http.entrypoints=web"
- "traefik.http.routers.my-app-http.rule=Host(`my-app.localhost`)"
- "traefik.http.services.my-app-http.loadbalancer.server.port=8000"
volumes:
- ./:/app
networks:
- my-network
buggregator:
container_name: my1-buggregator
image: ghcr.io/buggregator/server:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.buggregator-http.entrypoints=web"
- "traefik.http.routers.buggregator-http.rule=Host(`buggregator.localhost`)"
- "traefik.http.services.buggregator-http.loadbalancer.server.port=8000"
logging:
driver: none
networks:
- my-network
reverse-proxy:
container_name: my1-reverse-proxy
image: traefik:v2.9
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--providers.file.watch=true"
ports:
- ${TRAEFIC_PORT_HTTP:-80}:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
logging:
driver: none
networks:
- my-network
pgsql:
container_name: my1-pgsql
image: postgres:15
environment:
POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret
POSTGRES_DB: app
networks:
- my-network
networks:
my-network:
ipam:
driver: default
config:
- subnet: 172.0.69.0/24