-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
62 lines (53 loc) · 1.09 KB
/
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
services:
api:
build:
context: api
secrets:
- api-config
secrets:
- source: api-config
target: /api/src/config/config.ts
- source: api-env
target: /api/.env
# useful for testing
# - source: aws-config
# target: /home/node/.aws/config
# uid: "1000"
# gid: "1000"
# - source: aws-credentials
# target: /home/node/.aws/credentials
# uid: "1000"
# gid: "1000"
expose:
- 80/tcp
website:
build:
context: website
secrets:
- website-env
expose:
- 80/tcp
nginx:
build: nginx
ports:
- 127.0.0.1:443:443/tcp
- 127.0.0.1:80:80/tcp
secrets:
- tls-key
- tls-cert
secrets:
api-config:
file: secrets/api/config.ts
api-env:
file: secrets/api/.env
website-env:
file: secrets/website/.env
# useful for testing
# aws-config:
# file: ~/.aws/config
# aws-credentials:
# file: ~/.aws/credentials
# tls-key:
# file: ~/cert/localhost.key
# tls-cert:
# file: ~/cert/localhost.crt