-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (44 loc) · 1.06 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
41
42
43
44
45
46
47
48
49
50
version: '3.8'
services:
frontend:
container_name: lentovaraukset_frontend
restart: always
build:
context: .
dockerfile: ./frontend/Dockerfile
volumes:
- ./staging/nginx.conf:/etc/nginx/conf.d/default.conf
backend:
container_name: lentovaraukset_backend
restart: always
build:
context: .
dockerfile: ./backend/Dockerfile
links:
- db
depends_on:
- db
environment:
- DATABASE_URL=${DATABASE_URL}
- CLOUD_INSTANCE=${CLOUD_INSTANCE}
- TENANT_ID=${TENANT_ID}
- CLIENT_ID=${CLIENT_ID}
- CLIENT_SECRET=${CLIENT_SECRET}
- REDIRECT_URI=${REDIRECT_URI}
- POST_LOGOUT_REDIRECT_URI=${POST_LOGOUT_REDIRECT_URI}
- EXPRESS_SESSION_SECRET=${EXPRESS_SESSION_SECRET}
- BASE_PATH=${BASE_PATH}
db:
image: postgres:15.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- data:/var/lib/postgresql/data
volumes:
data:
networks:
default:
external:
name: ohtup