-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.dev.yml
57 lines (48 loc) · 1.18 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
56
version: "3.5"
networks:
knests-dev:
external: true
services:
client:
command: node server.js --hostname 0.0.0.0 --port="${SERVICE_PORT:-8080}"
volumes:
- ./client:/data
build:
context: ./client
target: builder
ports:
- "8080:8080"
environment:
SERVER_URL: http://server:8081
networks:
- "knests-dev"
server:
command: npm run start:dev
build:
context: ./server
target: builder
env_file:
- ./server/docker/dev.env
networks:
- "knests-dev"
volumes:
- ./server:/home/node
ports:
- "8000:8081"
environment:
DATABASE_URL: postgres://admin-dev:5UPP3rSecr3tPAssword@postgres:5432/knests-dev
JWT_SECRET: "###98347likjnv980u*&^#(*&^^^#(*_|_&#_|_KJH#JKHG#_|_*(&#_|_*&#_|_(*&#^(*&#^_|_(*&#^_|_LKJ;o98(*SLKDJHLSKJH<M>n;loi098df904987"
postgres:
environment:
# DB_HOST: postgresql
POSTGRES_DB: knests-dev
POSTGRES_USER: admin-dev
POSTGRES_PASSWORD: 5UPP3rSecr3tPAssword
ports:
- "54329:5432"
networks:
- "knests-dev"
volumes:
- knests_db_dev:/var/lib/postgresql/data
volumes:
knests_db_dev: