-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
125 lines (113 loc) · 3.25 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3.7'
networks:
internalDB:
publicWeb:
services:
Web:
image: caddy/caddy:scratch
restart: unless-stopped
command: ['run', '--config', '/etc/caddy/Caddyfile.json']
volumes:
- ./Caddyfile.json:/etc/caddy/Caddyfile.json
- staticWeb:/app/public/static:ro
- tlsCertificates:/TLS:ro
ports:
- 8085:8085
- 443:443
networks:
- publicWeb
API:
build:
context: ./Services/API/
dockerfile: Dockerfile.dev
image: kristianfoss/development/app-template-api
command: /bin/sh -c "while sleep 1000; do :; done"
networks:
- internalDB
- publicWeb
volumes:
# GIT
- ./.git:/workspace/.git:cached
- ./.gitignore:/workspace/.gitignore:ro
# API Folders
- ./Services/API:/workspace/Services/API:delegated
- apiModules:/workspace/Services/API/node_modules
# Other Services
- ./Services/UI:/workspace/Services/UI:ro
- ./Services/SSO:/workspace/Services/SSO:ro
# GraphQL Schema File Generated By API
# - ./Schema.graphql:/workspace/Services/API/Schema.graphql:cached
UI:
build:
context: ./Services/UI/
dockerfile: Dockerfile.dev
image: kristianfoss/development/app-template-ui
command: /bin/sh -c "while sleep 1000; do :; done"
environment:
DOMAIN: 'localhost.kristianjones.dev'
networks:
- publicWeb
volumes:
# GIT
- ./.git:/workspace/.git:cached
- ./.gitignore:/workspace/.gitignore:cached
# UI Folders
- ./Services/UI:/workspace/Services/UI:delegated
- uiModules:/workspace/Services/UI/node_modules
- uiCache:/workspace/Services/UI/.parcel-cache
- staticWeb:/workspace/Services/UI/dist/public
# GraphQL Schema File Generated By API
- ./Schema.graphql:/workspace/Services/UI/Schema.graphql:cached
- ./local/AppTemplate.xml:/IDPMetadata.xml:ro
SSO:
build:
context: ./Services/SSO/
dockerfile: Dockerfile.dev
image: kristianfoss/development/app-template-sso
command: /bin/sh -c "while sleep 1000; do :; done"
environment:
DOMAIN: 'localhost.kristianjones.dev'
networks:
- publicWeb
volumes:
# GIT
- ./.git:/workspace/.git:cached
- ./.gitignore:/workspace/.gitignore:cached
# UI Folders
- ./Services/SSO:/workspace/Services/SSO:delegated
- ssoModules:/workspace/Services/SSO/node_modules
- ./local/AppTemplate.xml:/metadata.xml:ro
SubscriberDL:
image: docker.pkg.github.com/kristianfjones/distributed-dns/distributed-dns-subscriberdl
restart: unless-stopped
env_file: ENVs/SubscriberDL.env
environment:
API_URL: 'https://dns.kristianjones.dev'
volumes:
- subscriberDLState:/data/State
- tlsCertificates:/data/TLS
- /var/run/docker.sock:/var/run/docker.sock
labels:
com.ouroboros.enable: 'true'
database:
image: postgres:alpine
volumes:
- databaseData:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- internalDB
environment:
POSTGRES_PASSWORD: pgpass
POSTGRES_DB: app-template
volumes:
apiModules:
uiModules:
ssoModules:
ssoDist:
uiCache:
databaseData:
pgAdminData:
staticWeb:
tlsCertificates:
subscriberDLState: