-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (49 loc) · 1.04 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
version: '3.8'
services:
app:
container_name: go-gin-app
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
command: air
depends_on:
- db
- nyckeln
- redis
environment:
- ENV=dev
- DB_HOST=db
- DB_USER=ticketuser
- DB_PASSWORD=yourpassword
- DB_NAME=ticketdb
- DB_PORT=5432
- DB_SSLMODE=disable # or your preferred SSL mode
- LOGIN_BASE_URL=http://nyckeln:7002
- REDIS_URL=redis:6379
volumes:
- .:/app
db:
container_name: postgres-db
image: postgres:16
ports:
- "5432:5432"
environment:
POSTGRES_DB: ticketdb
POSTGRES_USER: ticketuser
POSTGRES_PASSWORD: yourpassword
volumes:
- postgres-data:/var/lib/postgresql/data
nyckeln:
container_name: nyckeln-service
image: ghcr.io/datasektionen/nyckeln-under-dorrmattan
platform: linux/amd64
ports:
- "7002:7002"
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
postgres-data: