generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.47 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
---
version: "3.9"
services:
database:
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: DPEPGHbjUluRjetU
MONGODB_DATABASE: pubcode
image: ghcr.io/bcgov/nr-containers/mongo:6.0.11
ports: ["27017:27017"]
restart: unless-stopped
mongo-express: # The admin UI container for mongoDB
image: mongo-express
restart: unless-stopped
ports:
- "8001:8081"
environment:
ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"
ME_CONFIG_MONGODB_AUTH_DATABASE: db
ME_CONFIG_MONGODB_AUTH_USERNAME: default
ME_CONFIG_MONGODB_AUTH_PASSWORD: default
ME_CONFIG_MONGODB_ADMINUSERNAME: default
ME_CONFIG_MONGODB_ADMINPASSWORD: default
ME_CONFIG_MONGODB_URL: mongodb://admin:DPEPGHbjUluRjetU@database:27017/
depends_on:
database:
condition: service_started
api:
image: pub-code-api:latest
build:
context: api
environment:
DB_HOST: database
DB_USER: admin
DB_PWD: DPEPGHbjUluRjetU
DB_NAME: pubcode
ports:
- "3005:3000"
restart: unless-stopped
depends_on:
database:
condition: service_started
#Run npm run build-watch in local before this.
frontend:
image: caddy:2.8.4-alpine
working_dir: /app
volumes:
- ./frontend/Caddyfile:/etc/caddy/Caddyfile
- ./frontend/dist:/app/dist
depends_on:
api:
condition: service_started
ports:
- "3002:3000"
restart: unless-stopped