-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 2.64 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3.8"
services:
defender:
build:
context: ./frontends/defender
volumes:
- ./frontends/defender/src:/usr/src/defender/src
- ./frontends/defender/index.html:/usr/src/defender/index.html
- ./frontends/defender/package.json:/usr/src/defender/package.json
- ./frontends/defender/tsconfig.json:/usr/src/defender/tsconfig.json
- ./frontends/defender/tsconfig.node.json:/usr/src/defender/tsconfig.node.json
- ./frontends/defender/vite.config.json:/usr/src/defender/vite.config.json
- ./frontends/defender/yarn.lock:/usr/src/defender/yarn.lock
- /usr/src/defender/node_modules
ports:
- "1111:1111"
depends_on:
- api
command: "npm run start:local"
env_file:
- ./.env
environment:
# HACK: find a way to autopull vars in setup
- TARGET_ENV=local
- VITE_TARGET_ENV=local
- VITE_GIDEON_API_URL=http://localhost:3000
frontdoor:
build:
context: ./frontends/frontdoor
volumes:
- ./frontends/frontdoor/src:/usr/src/frontdoor/src
- ./frontends/frontdoor/public:/usr/public/frontdoor/src
- ./frontends/frontdoor/index.html:/usr/src/frontdoor/index.html
- ./frontends/frontdoor/package.json:/usr/src/frontdoor/package.json
- ./frontends/frontdoor/tsconfig.json:/usr/src/frontdoor/tsconfig.json
- ./frontends/frontdoor/tsconfig.node.json:/usr/src/frontdoor/tsconfig.node.json
- ./frontends/frontdoor/vite.config.json:/usr/src/frontdoor/vite.config.json
- ./frontends/frontdoor/yarn.lock:/usr/src/frontdoor/yarn.lock
- /usr/src/frontdoor/node_modules
ports:
- "1110:1110"
command: "npm run start:local"
env_file:
- ./.env
environment:
# HACK: find a way to autopull vars in setup
- TARGET_ENV=local
- VITE_TARGET_ENV=local
- VITE_GIDEON_API_URL=http://localhost:3000
api:
build:
context: ./backends
volumes:
- ./backends/src:/usr/src/backends/src
- ./backends/requirements.txt:/usr/src/backends/requirements.txt
ports:
- "3000:3000"
depends_on:
- database_app
- queue
env_file:
- ./.env
environment:
- DATABASE_APP_HOST=database_app # within docker network, we use service name
- TARGET_ENV=local
- TARGET_SERVICE=api
command: sh -c "watchmedo auto-restart --pattern="*.py" --directory="." --recursive -- python -u ./src/start.py"
database_app:
image: postgres:14.5
environment:
POSTGRES_DB: gideon
POSTGRES_USER: gideon
POSTGRES_PASSWORD: nojusticenopeace
ports:
- "5432:5432"
queue:
image: redis:6.2.7
ports:
- "6379:6379"