-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
108 lines (100 loc) · 2.22 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.8"
volumes:
postgres-data:
networks:
api:
database:
front-end:
ipam:
config:
- subnet: 172.20.0.0/16
gateway: 172.20.0.1
services:
db:
environment:
- ALLOW_EMPTY_PASSWORD=yes
container_name: postgres-sandbox
restart: always
build:
context: ./back-end/northwind_psql_sql_example
target: postgres-container
ports:
- "5432:5432"
volumes:
- postgres-data:/bitnami/postgresql/data
networks:
- database
profiles: [backend, full]
api-gateway:
environment:
- AUTH0_URL=${AUTH0_URL}
- AUTH0_AUDIENCE_URL=${AUTH0_AUDIENCE_URL}
- AUTH0_SIGNING_ALG=${AUTH0_SIGNING_ALG}
- REDIS_PUBLIC_URL=${REDIS_PUBLIC_URL}
- REST_API_URL=${REST_API_URL}
container_name: api-gateway-sandbox
depends_on:
- redis
- rest-api
build:
context: ./back-end/api-gateway
target: api-gateway
ports:
- "3000:3000"
networks:
front-end:
ipv4_address: 172.20.0.3
api:
profiles: [backend, full]
redis:
container_name: redis-db
restart: always
build:
context: ./back-end/redis-example
target: redis-container
ports:
- "6379:6379"
networks:
- api
profiles: [backend, full]
rest-api:
environment:
- DIRECT_URL=${DATABASE_URL}
- DATABASE_URL=${DATABASE_URL}
- AUTH0_URL=${AUTH0_URL}
- AUTH0_AUDIENCE_URL=${AUTH0_AUDIENCE_URL}
- AUTH0_SIGNING_ALG=${AUTH0_SIGNING_ALG}
container_name: rest-api-sandbox
depends_on:
- db
build:
context: ./back-end/monolithic-api
target: rest-api
ports:
- "3001:3001"
networks:
- database
- api
profiles: [backend, full]
react:
container_name: react-sandbox
build:
context: ./front-end/react-vite
target: react-prod
ports:
- "4000:4000"
networks:
front-end:
ipv4_address: 172.20.0.2
profiles: [frontend, full]
storybook:
container_name: storybook-sandbox
build:
context: ./front-end/react-vite
target: storybook
ports:
- "3999:3999"
networks:
front-end:
ipv4_address: 172.20.0.4
profiles: [frontend, full]