-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-docker-compose.yml
100 lines (98 loc) · 2.4 KB
/
dev-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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3.7'
services:
frontend:
build:
context: .
dockerfile: apps/stllctn-frontend/Dockerfile.dev
ports:
- "3500:3500"
stdin_open: true
volumes:
- ./:/app
- /app/node_modules
- /app/apps/stllctn-frontend/node_modules
command: npm run frontend
backend:
build:
context: .
dockerfile: apps/stllctn-backend/Dockerfile.dev
environment:
- SQL_HOST=postgres
- SQL_USER=postgres
- SQL_PASSWORD=password
- SQL_DATABASE=postgres
- SQL_PORT=5555
ports:
- "5500:5500"
volumes:
- ./apps/stllctn-backend:/app/apps/stllctn-backend
- /app/node_modules
- /app/apps/stllctn-backend/node_modules
- ./data/stellection-data:/data
depends_on:
- postgres
restart: always
command: [
# this file must be chmod +x on YOUR COMPUTER
"./apps/stllctn-backend/scripts/wait-for-it.sh",
"postgres:5555",
"--",
"npm",
"run",
"entrypoint:backenddev"
]
# ["bash", "./apps/stllctn-backend/scripts/wait-for-it.sh", "postgres:5555", "sh", "apps/stllctn-backend/scripts/entrypoint.sh"]
# command: npm run dev:backend
# migration:
# build:
# context: .
# dockerfile: apps/stllctn-backend/Dockerfile.dev
# command:
# [
# "./apps/stllctn-backend/scripts/wait-for-it.sh",
# "127.0.0.1:5555",
# "--",
# "npm",
# "run",
# "migrate"
# ]
# links:
# - postgres
# depends_on:
# - postgres
# extra_hosts:
# - "host.docker.internal:host-gateway"
# environment:
# - SQL_HOST=host.docker.internal
# - SQL_USER=postgres
# - SQL_PASSWORD=password
# - SQL_DATABASE=postgres
# restart: on-failure:10
# volumes:
# - ./:/app
# - /app/node_modules
# - /app/stllctn-backend/node_modules
postgres:
image: 'postgres:12'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
ports:
- '5555:5555'
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
command: -p 5555
# backend-python:
# build:
# context: .
# dockerfile: backend-python/Dockerfile
# ports:
# - "5501:5501"
# volumes:
# - ./:/app
# restart: always
# command: python3 app.py
volumes:
cache:
driver: local