-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
63 lines (59 loc) · 1.59 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
63 lines (59 loc) · 1.59 KB
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
services:
traefik:
build:
context: ./docker
dockerfile: Dockerfile.traefik
command:
- --api.insecure=true
- --providers.docker=false
- --entrypoints.http.address=:80
- --entrypoints.https.address=:443
- --entrypoints.http.http.redirections.entrypoint.to=https
- --entrypoints.http.http.redirections.entrypoint.scheme=https
- --providers.file.directory=/etc/traefik/conf.d
volumes:
- ./docker/traefik-dynamic.yml:/etc/traefik/conf.d/dynamic.yml:ro
ports:
- "80:80"
- "443:443"
- "9000:8080"
restart: unless-stopped
networks:
- traefik
postgres:
image: postgres:18.4-alpine
environment:
- POSTGRES_DB=slotfinder
- POSTGRES_USER=slotfinder
- POSTGRES_PASSWORD=slotfinder
volumes:
- postgres_data:/var/lib/postgresql
- ./db/init:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
networks:
- traefik
devtools:
profiles: ["devcontainer"]
build:
context: .
dockerfile: .devcontainer/Dockerfile
user: vscode
environment:
- GOPATH=/go
- GOBIN=/go/bin
- PATH=/home/vscode/.local/share/mise/shims:/home/vscode/.local/bin:/usr/local/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
volumes:
- ./:/workspace
- go-mod-cache:/home/vscode/go/pkg/mod
- ~/.gitconfig:/home/vscode/.gitconfig:ro
- ~/.ssh:/home/vscode/.ssh:ro
working_dir: /workspace
networks:
- traefik
volumes:
postgres_data:
go-mod-cache:
networks:
traefik:
name: traefik