-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack.yml
83 lines (81 loc) · 2.1 KB
/
stack.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
version: '3.5'
services:
ticketapp:
image: ticket-app:latest
environment:
- APP_PORT
- REACT_APP_API_ORIGIN
ports:
- published: ${APP_PORT}
target: 3000
mode: host
ticketapi:
image: ticket-api:latest
environment:
- API_PUBLIC_PORT
- API_PORT
- API_CORS_TYPE
- API_CORS_POLICY
depends_on:
- sqldb
networks:
- internalnet
ports:
- published: ${API_PUBLIC_PORT}
target: ${API_PORT}
mode: host
sqldb:
image: wayfarer-db:latest
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 1G
# command: --default-authentication-plugin=mysql_native_password
# restart: always
networks:
- internalnet
environment:
MYSQL_ROOT_PASSWORD: changeme
constraint: node==node01
ports:
- "3306:3306"
wayfareroauth:
image: wayfarer-oauth:latest
environment:
- OAUTH_PUBLIC_PORT
- OAUTH_PORT
- OAUTH_CORS_TYPE
- OAUTH_CORS_POLICY
depends_on:
- sqloauthdb
networks:
- internalnet
ports:
- published: ${OAUTH_PUBLIC_PORT}
target: ${OAUTH_PORT}
mode: host
sqloauthdb:
image: wayfarer-oauth-db:latest
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 1G
# command: --default-authentication-plugin=mysql_native_password
# restart: always
networks:
- internalnet
environment:
MYSQL_ROOT_PASSWORD: changeme
constraint: node==node01
ports:
- "3307:3306"
networks:
internalnet:
driver: overlay
ipam:
config:
- subnet: 192.168.18.0/24