This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
Lateinicus/compose.yml

65 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2018-09-28 21:33:28 +00:00
version: "3.6"
services:
2018-09-29 12:23:09 +00:00
db:
image: mongo:4.0.2-xenial
command: mongod --config /etc/mongo/mongod.conf
2018-10-07 16:46:18 +00:00
read_only: true
tmpfs: /tmp
volumes:
- ./server/db/:/etc/mongo/db/:rw
- ./server/mongod.conf:/etc/mongo/mongod.conf:ro
2018-09-29 12:23:09 +00:00
expose:
- "27017"
networks:
backend:
ipv4_address: 128.1.0.2
2018-09-28 21:33:28 +00:00
backend:
2018-10-21 14:33:15 +00:00
image: lateinicus/server:1.5.0
environment:
- LATEINICUS_USER_PW=abc123
2018-10-09 14:07:08 +00:00
- LATEINICUS_CLASSES=test
2018-09-28 21:33:28 +00:00
expose:
- "8080"
2018-09-29 12:23:09 +00:00
depends_on:
- db
2018-10-07 16:46:18 +00:00
volumes:
- ./server/de.json:/etc/profanity:ro
2018-09-28 21:33:28 +00:00
networks:
backend:
ipv4_address: 128.1.0.3
proxy:
image: nginx:1.15.4-alpine
ports:
- "80:80"
- "443:443"
networks:
- outside
- backend
volumes:
# TODO: DEBUG
- ./server/nginx.conf:/etc/nginx/nginx.conf:ro
- ./frontend/dist/:/srv/www/:ro
2018-09-30 18:15:27 +00:00
- ./server/ssl.key.pem:/etc/ssl/lateinicus.key:ro
- ./server/ssl.pem:/etc/ssl/lateinicus.pem:ro
2018-09-28 21:33:28 +00:00
depends_on:
- backend
# The outside network is needed to only expose the reverse
# proxy to the outside
networks:
backend:
driver: bridge
internal: yes
driver_opts:
com.docker.network.bridge.name: 'backend'
ipam:
driver: default
config:
- subnet: 128.1.0.0/8
outside:
driver: bridge