-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 988 Bytes
/
docker-compose.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
services:
db:
image: postgres:15.3-alpine3.18
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=go-dnd
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
- ./configs/init.sql:/docker-entrypoint-initdb.d/create_tables.sql
go-dnd:
build:
context: .
dockerfile: build/docker/Dockerfile
restart: unless-stopped
environment:
- HOST=
- PORT=8000
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PASS=postgres
- POSTGRES_DB=go-dnd
- GIN_MODE=debug
- CRYPT_COST=16
- CAMPAIGN_DATA_DIR=/campaign_data
- CAMPAIGN_WEB_DIR=/web
- TEMPLATE_DIR=web/templates/
- JWT_SECRET=4g85f6134i78rbc12oi343615tcfpb9
depends_on:
- db
ports:
- "8000:8000"
volumes:
- ./campaign_data:/campaign_data
volumes:
db:
driver: local