-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
55 lines (51 loc) · 1.13 KB
/
docker-compose.dev.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
services:
models:
build:
context: ./server
target: model_generator
environment:
GENERATED_TYPES_OUT_DIR: ../client/generated_types
volumes:
- ./client:/client
- ./server:/server
- /server/model_generator/node_modules/
client:
build: ./client
environment:
VITE_APP_API_HOST: "http://localhost:8000"
VITE_APP_API_ROOT: "/"
ports:
- 3000:3000
volumes:
- ./client:/client
- /client/node_modules/
database:
build: ./database
secrets:
- postgres_password
env_file: .env
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
ports:
- 5432:5432
server:
depends_on:
- database
build:
context: ./server
target: debug
secrets:
- postgres_password
env_file: .env
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
FLASK_ENV: development
CORS_ALLOWED_ORIGIN: "http://localhost:3000"
ports:
- 5678:5678
- "8000:$API_PORT"
volumes:
- ./server:/server
secrets:
postgres_password:
file: .POSTGRES_PASSWORD