-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (86 loc) · 2.59 KB
/
docker-compose.yml
File metadata and controls
98 lines (86 loc) · 2.59 KB
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
version: '3'
services:
util:
build:
context: ./
dockerfile: config/util.docker
container_name: 'util'
volumes:
- ./util-service:/app
- ./dist/staging:/dist/staging
- ./dist/prod:/dist/prod
- ./dist/profile-editor:/dist/profile-editor
- ./dist/prod-quartz:/dist/prod-quartz
- ./dist/stage-quartz:/dist/stage-quartz
- ./tmp:/tmp
env_file:
- .env
depends_on:
database:
condition: service_healthy
restart: always
# ports:
# - 5001:5001
scriptshifter:
image: lcnetdev/scriptshifter:latest
volumes:
- ./tmp:/tmp
environment:
- TXL_FLASK_SECRET=1234567890
restart: always
database:
image: 'mongo:8'
container_name: 'mongo' # give your container a name
environment:
- MONGO_INITDB_DATABASE=bfe2 # database name you want to make
# We don't need to define root stuff because we are not using auth in the db
#- MONGO_INITDB_ROOT_USERNAME=bfe2 # set your container root username
#- MONGO_INITDB_ROOT_PASSWORD=bfe2 # set your contatner root password
command: ["--replSet", "rs0", "--bind_ip_all"]
volumes:
- ./config/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./database_files:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "try { var s = rs.status(); s.myState === 1 } catch(e) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongo:27017'}]}); false }"]
interval: 10s
timeout: 10s
retries: 12
start_period: 40s
restart: always
# we don't need to expose the mongo server, it only talks internally to the other containers
#ports:
# - '37017-37019:27017-27019'
# ldpjs services removed - LDP functionality migrated to util-service
dctap-dancer:
build:
context: ./dctap-dancer
dockerfile: Dockerfile
args:
VITE_BASE_PATH: /dancer/
container_name: 'dctap-dancer'
volumes:
- ./dctap-dancer/data:/app/data
restart: always
# ports:
# - 3000:3000
reverse:
container_name: reverse
hostname: reverse
depends_on:
- 'util'
image: nginx:stable-alpine
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf
- ./dist/prod:/prod
- ./dist/staging:/staging
- ./dist/profile-editor:/profile-editor
- ./dist/prod-quartz:/prod-quartz
- ./dist/prod-quartz:/srv/prod/marva
- ./dist/stage-quartz:/stage-quartz
- ./dist/stage-quartz:/srv/stage/marva
ports:
- 9401:8080
- 9400:80
restart: always
# - 443:443
# volumes: