-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
40 lines (35 loc) · 1.08 KB
/
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
version: '3.8'
services:
backend:
build: ./backend
ports:
- "8080:8080"
environment:
HOSTNAME: ${HOSTNAME}
CORS_ORIGINS: ${CORS_ORIGINS}
JWT_SECRET: ${JWT_SECRET}
AUTH_CALLBACK_URL: ${AUTH_CALLBACK_URL}
LOGIN_REDIRECT_URL: ${LOGIN_REDIRECT_URL}
POSTGRES_URL: db:5432/postgres
POSTGRES_USERNAME: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
depends_on:
db:
condition: service_healthy
db:
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: postgres
healthcheck:
test: pg_isready -U $$POSTGRES_USER -d postgres
interval: 3s
timeout: 30s
retries: 10
volumes:
- dbdata:/var/lib/postgresql/data
volumes:
dbdata: