This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (98 loc) · 2.2 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
version: "3.9"
services:
nginx:
build:
context: nginx
image: dol-ui-nginx:latest
container_name: dol-ui-nginx
networks:
- front-tier
- back-tier
volumes:
- ./certs:/etc/nginx/certs
ports:
- "8443:8443"
client:
build:
context: client
args:
- NEXT_PUBLIC_SERVER_BASE_URL=https://sandbox-claimant-intake:8443
image: dol-ui-client:latest
container_name: dol-ui-client
networks:
- front-tier
read_only: true
env_file: client/.env
environment:
- NEXTAUTH_URL=https://sandbox-claimant-intake:8443
- SERVER_BASE_URL=https://nginx:8443
- IGNORE_CERT_FAILURES=true
ports:
- "3000:3000"
server:
build:
context: server
image: dol-ui-server:latest
container_name: dol-ui-server
networks:
- back-tier
read_only: true
ports:
- "8080:8080"
volumes:
- server:/tmp/app
env_file: server/.env
environment:
AWS_REGION: us-east-1
AWS_S3_ENDPOINT_URL: http://localstack:4566
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-}
DB_HOST: db
DB_PORT: 5432
MOCK_WGPM_HOST: http://wiremock:8080
MOCK_WGPM_PATH: /wgpm
WGPM_HOST: ${WGPM_HOST:-}
WGPM_PATH: ${WGPM_PATH:-}
db:
image: postgres:14.3
container_name: dol-ui-db
restart: always
networks:
- back-tier
ports:
- "5432:5432"
environment:
POSTGRES_USER: localdev-postgres
POSTGRES_PASSWORD: localdev-postgres
volumes:
- db:/var/lib/postgresql/data
localstack:
container_name: dol-ui-localstack
image: localstack/localstack:1.0.4
networks:
- back-tier
ports:
- "4566:4566"
volumes:
- "localstack:/var/lib/localstack"
- "./scripts/aws-init:/docker-entrypoint-initaws.d"
wiremock:
container_name: dol-ui-wiremock
image: wiremock/wiremock:2.35.0
networks:
- back-tier
ports:
- "9090:8080"
volumes:
- "./wiremock:/home/wiremock"
networks:
front-tier:
name: dol-ui-front-tier
back-tier:
name: dol-ui-back-tier
volumes:
db:
name: dol-ui-db
localstack:
name: dol-ui-localstack
server:
name: dol-ui-server