forked from wolfeidau/exitus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 1018 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
version: "3"
services:
backend_db:
image: postgres:10.7
ports:
- "15432:5432"
environment:
- POSTGRES_DB=backend
- POSTGRES_USER=backend
- POSTGRES_PASSWORD
- POSTGRES_ROOT_PASSWORD
volumes:
- backend_postgresql:/var/lib/postgresql
- backend_postgresql_data:/var/lib/postgresql/data
backend:
build: .
command: ["go", "run", "cmd/backend/main.go"]
environment:
- OAUTH_CLIENT_ID
- OAUTH_CLIENT_SECRET
- OPENID_PROVIDER_URL
- LOGLEVEL=DEBUG
- PGDATASOURCE=postgres://backend:${POSTGRES_PASSWORD}@postgres/backend?sslmode=disable
- ADDR=:8080
- STAGE=local
- BRANCH=master
depends_on:
- backend_db
links:
- backend_db:postgres
ports:
- "18443:8443"
- "18080:8080"
volumes:
- backend_gomod_data:/go/pkg/mod
- .:/src
volumes:
backend_postgresql:
backend_postgresql_data:
backend_gomod_data: