-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (46 loc) · 1.14 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.8'
services:
postgres:
image: bitnami/postgresql
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: sushi
volumes:
- ./db/data:/bitnami/postgresql/data
restart: always
# redis:
# image: redis/redis-stack:latest
# container_name: redis
# ports:
# - "6379:6379"
# restart: always
sushi-backend:
image: breeze5690/sushi-backend-prod:v1
ports:
- "8080:8080"
environment:
- SERVER_PORT=8080
- LOG_LEVEL=Debug
- JWT_SECRET=secret123
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=sushi
- MIGRATE_DB=true
# OAuth Configuration
- GOOGLE_CLIENT_ID=
- GOOGLE_CLIENT_SECRET=
- GOOGLE_REDIRECT_URL=http://localhost:8080/api/v1/auth/callback
- GITHUB_CLIENT_ID=
- GITHUB_CLIENT_SECRET=
- GITHUB_REDIRECT_URL=http://localhost:8080/api/v1/auth/callback
# volumes:
# - ./static:/app/static
depends_on:
- postgres
restart: always