-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
136 lines (119 loc) · 3.44 KB
/
docker-compose.yml
File metadata and controls
136 lines (119 loc) · 3.44 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
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'
restart: always
# ports:
# - 5001:5001
scriptshifter:
image: lcnetdev/scriptshifter:latest
volumes:
- ./tmp:/tmp
environment:
- TXL_FLASK_SECRET=1234567890
restart: always
# build:
# context: ./scriptshifter/
# dockerfile: Dockerfile
# container_name: 'scriptshifter'
# volumes:
# - ./tmp:/tmp
# environment:
# - TXL_FLASK_SECRET=1234567890
# # ports:
# # - 5003:8000
database:
image: 'mongo:4.4.4'
container_name: 'mongo' # give your contatner 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
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-staging:
build:
context: ./
dockerfile: config/ldpjs.docker
container_name: 'ldpjs-staging'
platform: linux/amd64
depends_on:
- 'database'
volumes:
- ./ldpjs:/app # make the app directory from the git submodule
- ./config/ldpjs_config_staging.js:/app/config/index.js # copy over our own
- ./config/ldpjs_server_staging.js:/app/server.js # copy over our own
- ./tmp:/app/tmp
- ./config/ldpjs_startup.sh:/app/startup.sh
restart: always
# ports:
# - 9501:3000
ldpjs-production:
build:
context: ./
dockerfile: config/ldpjs.docker
container_name: 'ldpjs-production'
platform: linux/amd64
depends_on:
- 'database'
volumes:
- ./ldpjs:/app # make the app directory from the git submodule
- ./config/ldpjs_config_production.js:/app/config/index.js # copy over our own
- ./config/ldpjs_server_production.js:/app/server.js # copy over our own
- ./tmp:/app/tmp
- ./config/ldpjs_startup.sh:/app/startup.sh
restart: always
# ports:
# - 9501:3000
dctap-dancer:
build:
context: ./dctap-dancer
dockerfile: Dockerfile
container_name: 'dctap-dancer'
volumes:
- ./dctap-dancer/data:/app/data
restart: always
# ports:
# - 3000:3000
reverse:
container_name: reverse
hostname: reverse
depends_on:
- 'ldpjs-staging'
- '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/stage-quartz:/stage-quartz
ports:
- 9401:8080
- 9400:80
restart: always
# - 443:443
# volumes: