generated from EntraptaJ/Application-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (76 loc) · 2.08 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.7'
services:
# Web:
# image: hectormolinero/caddy2
# restart: unless-stopped
# ports:
# - 80:80
# volumes:
# - ./Caddyfile.json:/etc/Caddy/Caddyfile.json
# PermissionMaker:
# image: alpine:3.11
# command: chown -R 1000:1000 /workspace/
# volumes:
# - apiModules:/workspace/apiModules
# - uiModules:/workspace/uiModules
# - subscriberDLModules:/workspace/subscriberDLModules
Database:
image: postgres:11-alpine
volumes:
- databaseData:/var/lib/postgresql/data
ports:
- 4763:5432
environment:
POSTGRES_PASSWORD: pgpass
POSTGRES_DB: application
API:
build:
context: ./API/
dockerfile: Dockerfile.dev
image: kristianfoss/development/app-template-api
command: /bin/sh -c "while sleep 1000; do :; done"
environment:
DB_HOST: database
DB_PASSWORD: pgpass
volumes:
- ./API:/workspace/API:delegated
- apiModules:/workspace/API/node_modules
SubscriberDL:
build:
context: ./SubscriberDL/
dockerfile: Dockerfile.dev
image: kristianfoss/development/distributed-dns-subscriberdl
command: /bin/sh -c "while sleep 1000; do :; done"
volumes:
- ./SubscriberDL:/workspace/SubscriberDL:delegated
- subscriberDLModules:/workspace/SubscriberDL/node_modules
UI:
build:
context: ./Web/
dockerfile: Dockerfile.dev
image: kristianfoss/development/distributed-dns-ui
command: /bin/sh -c "while sleep 1000; do :; done"
ports:
- 5859:5859
volumes:
- ./Web:/workspace/Web:delegated
- uiModules:/workspace/Web/node_modules
- uiDist:/workspace/Web/dist
environment:
API_HOST: api:8080
# UI:
# build:
# context: ./Web/
# dockerfile: Dockerfile.dev
# image: kristianfoss/development/app-template-ui
# command: /bin/sh -c "while sleep 1000; do :; done"
# volumes:
# - .:/workspace:cached
# - uiModules:/workspace/Web/node_modules
volumes:
databaseData:
apiModules:
uiModules:
uiDist:
apiSchema:
subscriberDLModules: