-
Notifications
You must be signed in to change notification settings - Fork 68
/
docker-compose.yml
115 lines (113 loc) · 2.92 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
109
110
111
112
113
114
115
version: '3'
volumes:
db-data:
yarn:
nm-app:
nm-admin:
pw-deps:
services:
app:
build:
dockerfile: Dockerfile-app
context: .
command: ["yarn", "watch"]
volumes:
- yarn:/usr/local/share/.cache/yarn
- .:/app
- /app/admin-client/
- nm-app:/app/node_modules
ports:
- "1337:1337" # for the app itself
- "8888:8888" # for viewing webpack-bundle-analyzer
- "8080:8080" # for serving test coverage html
depends_on:
- db
- redis
environment:
APP_HOSTNAME: http://localhost:1337
DOMAIN: localhost:1337
FEATURE_BUILD_TASKS: 'active'
FEATURE_LOCAL_BUILD_REPORTS: 'active'
NODE_ENV: development
PORT: 1337
PRODUCT: pages
UAA_HOST: http://localhost:9001
UAA_HOST_DOCKER_URL: http://uaa:8080
USER_AUDITOR: federalist
CLOUD_FOUNDRY_API_HOST: https://api.example.com
CLOUD_FOUNDRY_OAUTH_TOKEN_URL: https://login.example.com/oauth/token
CF_API_USERNAME: deploy_user
CF_API_PASSWORD: deploy_pass
PROXY_DOMAIN: localhost:1337
QUEUES_BUILD_TASKS_CONCURRENCY: 1
bull-board:
build:
dockerfile: Dockerfile-app
context: .
command: ["scripts/wait-for-it.sh", "redis:6379", "--", "yarn", "start-bull-board:local"]
volumes:
- yarn:/usr/local/share/.cache/yarn
- .:/app
- /app/admin-client/
- nm-app:/app/node_modules
ports:
- "1340:1340"
depends_on:
- redis
environment:
ADMIN_GITHUB_ORGANIZATION: FederalistLocal
ADMIN_GITHUB_TEAM: federalist-local-admins
APP_ENV: local
APP_HOSTNAME: http://localhost:1340
PORT: 1340
PRODUCT: pages
REDIS_URL: redis://redis:6379
SESSION_SECRET: bull-board
UAA_CLIENT_ID: pages-client
UAA_CLIENT_SECRET: client-secret
UAA_HOST_DOCKER_URL: http://uaa:8080
UAA_LOGIN_HOST: http://localhost:9001
admin-client:
build:
dockerfile: ./admin-client/Dockerfile-admin
context: .
volumes:
- yarn:/usr/local/share/.cache/yarn
- ./admin-client:/app
- nm-admin:/app/node_modules
ports:
- "3000:3000"
- "35729:35729"
depends_on:
- app
command: ["yarn", "dev"]
environment:
API_URL: http://localhost:1337
db:
build:
dockerfile: Dockerfile-db
context: .
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5433:5432" # expose db on host at port 5433
environment:
POSTGRES_DB: federalist
POSTGRES_TEST_DB: federalist-test
POSTGRES_PASSWORD: password
redis:
image: redis
ports:
- 6379:6379
command: redis-server --loglevel warning
echo:
image: node:20.9-bullseye
volumes:
- yarn:/usr/local/share/.cache/yarn
- .:/app
- /app/admin-client/
- nm-app:/app/node_modules
environment:
HOST: 0.0.0.0
PORT: 8989
command: node app/scripts/echo.js