-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
60 lines (56 loc) · 1.23 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
51
52
53
54
55
56
57
58
59
60
version: '3.8'
networks:
main:
logs:
external: true
services:
backend:
build: ./backend/.
depends_on:
- postgres
ports:
- "127.0.0.1:3501:3001"
environment:
- PathBase=/api
- ASPNETCORE_ENVIRONMENT
- ASPNETCORE_URLS=http://+:3001
- Database__Database=mutualify
- Database__Host=postgres
- Database__Port=5432
- Database__Username=postgres
- Database__Password=postgres
- osuApi__ClientId
- osuApi__ClientSecret
- osuApi__CallbackUrl=/oauth/callback
volumes:
- ./logs/backend:/app/logs
- ./keys:/root/.aspnet/DataProtection-Keys
networks:
- main
- logs
restart: unless-stopped
pull_policy: build
frontend:
build: ./frontend/.
ports:
- "127.0.0.1:3500:3000"
volumes:
- ./logs/frontend:/app/logs
networks:
- main
restart: unless-stopped
pull_policy: build
postgres:
image: postgres:16
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=mutualify
- PGDATA=/data/postgres
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./db:/data/postgres
networks:
- main
restart: unless-stopped