-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
35 lines (32 loc) · 868 Bytes
/
docker-compose.dev.yml
File metadata and controls
35 lines (32 loc) · 868 Bytes
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
services:
traefik:
image: "traefik"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--providers.file.filename=/etc/traefik/dynamic.yml"
ports:
- "80:80"
- "8080:8080"
volumes:
- "./traefik.yml:/etc/traefik/dynamic.yml:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
extra_hosts:
- "host.docker.internal:host-gateway"
postgres:
image: postgres:16
container_name: traefik-share-postgres
environment:
POSTGRES_DB: traefik_share
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
postgres_data: