-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
36 lines (32 loc) · 1.03 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
version: "3.9"
services:
backend-app:
image: backend-app:latest
build:
context: .
dockerfile: Dockerfile
environment:
- DATABASE_URL=${APP_DATABASE_URL}
- GITHUB_API_TOKEN=${APP_GITHUB_API_TOKEN}
- ENVIRONMENT=${APP_ENVIRONMENT}
- GITHUB_OAUTH_CLIENT_ID=${APP_GITHUB_OAUTH_CLIENT_ID}
- GITHUB_OAUTH_CLIENT_SECRET=${APP_GITHUB_OAUTH_CLIENT_SECRET}
- GITHUB_OAUTH_CALLBACK_URL=${APP_GITHUB_OAUTH_CALLBACK_URL}
- JWT_SECRET=${APP_JWT_SECRET}
- CROSS_ORIGINS=${APP_CROSS_ORIGINS}
ports:
- 80:80
restart: "on-failure"
postgres:
image: postgres:13
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- 25000:5432
volumes:
postgres-data:
driver: local