Modernize whole stack
This commit is contained in:
@@ -1,17 +1,29 @@
|
||||
version: '3.7'
|
||||
|
||||
networks:
|
||||
infra:
|
||||
external: true
|
||||
|
||||
services:
|
||||
app:
|
||||
image: kspaceee/doorboy-proxy:latest
|
||||
hostname: replica${OVERNODE_ID:-1}.doorboy.infra.k-space.ee
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
user: "65534:65534"
|
||||
networks:
|
||||
infra:
|
||||
ipv4_address: 172.21.57.${OVERNODE_ID:-1}
|
||||
ipv6_address: 2001:bb8:4008:21:57::${OVERNODE_ID:-1}
|
||||
mongoexpress:
|
||||
image: mongo-express
|
||||
network_mode: host
|
||||
environment:
|
||||
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
|
||||
- ME_CONFIG_MONGODB_SERVER=127.0.0.1
|
||||
- ME_CONFIG_MONGODB_PORT=27017
|
||||
- ME_CONFIG_MONGODB_AUTH_DATABASE=admin
|
||||
logging:
|
||||
driver: none
|
||||
|
||||
mongo:
|
||||
network_mode: host
|
||||
image: mongo:latest
|
||||
volumes:
|
||||
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:ro
|
||||
command: mongod --replSet rs0 --bind_ip 127.0.0.1
|
||||
logging:
|
||||
driver: none
|
||||
|
||||
doorboy_proxy:
|
||||
network_mode: host
|
||||
environment:
|
||||
DOORBOY_SECRET: 0123456789
|
||||
build:
|
||||
context: .
|
||||
|
||||
Reference in New Issue
Block a user