-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.09 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
version: "3.9"
services:
db:
image: postgis/postgis:13-3.1-alpine
container_name: db
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- dbdata:/var/lib/postgresql/data
ports:
- "${DB_PORT_HOST}:5432"
model:
build:
context: ./services/model
dockerfile: Dockerfile.dev
container_name: model
volumes:
- ./services/model/:/app
ports:
- "${MODEL_PORT_HOST}:80"
server:
build:
context: ./services/server
dockerfile: Dockerfile.dev
container_name: server
depends_on:
- db
- model
volumes:
- ./services/server/:/usr/app
- node_modules_server:/usr/app/node_modules
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
web:
build:
context: ./services/web
dockerfile: Dockerfile.dev
container_name: web
depends_on:
- server
volumes:
- ./services/web/:/usr/app
- node_modules_web:/usr/app/node_modules
ports:
- "${WEB_PORT}:${WEB_PORT}"
volumes:
dbdata:
node_modules_server:
node_modules_web: