-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
93 lines (89 loc) · 2.5 KB
/
docker-compose.dev.yml
File metadata and controls
93 lines (89 loc) · 2.5 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
networks:
dev_network:
name: dev_network
driver: bridge
secrets:
oauth_client_secret:
file: ./oauth_client_secret.secret
postgres_password:
file: ./postgres_password.secret
services:
# Start backend after database
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: development
ports:
- "${BACKEND_PORT:-8080}:8080"
environment:
- OAUTH_PROVIDER_NAME=${OAUTH_PROVIDER_NAME:-Koala}
- OAUTH_PROVIDER_URL=${OAUTH_PROVIDER_URL:-https://koala.dev.svsticky.nl}
- OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
- ASPNETCORE_ENVIRONMENT=Development
- CONNECTION_STRING=Host=/run/postgresql/;Port=5432;Username=committeeclash;Password=<PASSWORD>;Database=committeeclash;Include Error Detail=true
- ADMIN_CLAIM=${ADMIN_CLAIM:-is_admin}
secrets:
- oauth_client_secret
- postgres_password
volumes:
- ./backend:/app
- /app/bin
- /app/obj
- /run/postgresql/.s.PGSQL.5432:/run/postgresql/.s.PGSQL.5432
networks:
- dev_network
healthcheck:
test: ["CMD", "curl", "-f", "http://backend:8080/status"]
interval: 10s
timeout: 10s
retries: 5
start_period: 150s
# Start frontend after backend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: development
no_cache: true
ports:
- "${PORT:-3000}:3000"
environment:
- NEXT_PUBLIC_OAUTH_PROVIDER_NAME=${OAUTH_PROVIDER_NAME:-Koala}
- NEXT_PUBLIC_OAUTH_PROVIDER_URL=${OAUTH_PROVIDER_URL:-https://koala.svsticky.nl/}
- OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
- NODE_ENV=development
- WATCHPACK_POLLING=true
- NEXT_PUBLIC_THEME_COLOR=${THEME_COLOR:-#FA6B20}
- NEXTAUTH_URL=${HOST_URL:-http://localhost:3000}
- NEXT_PUBLIC_HOST_URL=${HOST_URL:-http://localhost:3000}
secrets:
- oauth_client_secret
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
depends_on:
backend:
condition: service_healthy
networks:
- dev_network
# docs:
# build:
# context: .
# dockerfile: docs/Dockerfile
# target: development
# no_cache: true
# ports:
# - "${DOCS_PORT:-3000}:3001"
# environment:
# - NODE_ENV=development
# - WATCHPACK_POLLING=true
# volumes:
# - ./docs:/app/docs
# - ./backend:/app/backend
# - ./frontend:/app/frontend
# - /app/node_modules
# - /app/.next
# networks:
# - dev_network