Skip to content

Commit

Permalink
Use networks
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorpangloss committed Feb 20, 2019
1 parent 53b3f67 commit 7091a70
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ version: '3'
services:
loadbalancer:
image: traefik:alpine
networks:
- web
command: |
--docker \
--entryPoints="Name:http Address::80 Redirect.EntryPoint:https" \
Expand All @@ -14,6 +16,7 @@ services:
--acme.entrypoint="https" \
--acme.ondemand=true \
--docker.swarmmode \
--docker.network=web \
--docker.watch \
--docker.exposedbydefault=false
ports:
Expand Down Expand Up @@ -41,6 +44,9 @@ services:
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SMTP_DOMAIN=${SMTP_DOMAIN}
networks:
- web
- backend
deploy:
restart_policy:
condition: on-failure
Expand All @@ -63,6 +69,9 @@ services:
retries: 3
launcher:
image: doctorpangloss/launcher:latest
networks:
- web
- backend
environment:
- MONGO_URL=mongodb://mongo:27017/launcher
- ROOT_URL=https://launcher.hiddenswitch.com
Expand All @@ -86,6 +95,8 @@ services:
retries: 3
mongo:
image: "mongo:3.6"
networks:
- backend
volumes:
- mongodata:/data/db
deploy:
Expand All @@ -103,6 +114,8 @@ services:
retries: 3
hazelcastmancenter:
image: hazelcast/management-center
networks:
- backend
volumes:
- mancenterdata:/data
environment:
Expand All @@ -116,6 +129,9 @@ services:
constraints: [node.platform.arch == x86_64]
mediawiki:
image: "doctorpangloss/wiki:latest"
networks:
- web
- backend
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
Expand Down Expand Up @@ -151,6 +167,8 @@ services:
constraints: [node.platform.arch == x86_64]
parsoid:
image: "thenets/parsoid:0.10.0"
networks:
- backend
deploy:
labels:
- "traefik.enable=false"
Expand All @@ -160,6 +178,8 @@ services:
- PARSOID_DOMAIN_mediawiki=http://mediawiki/api.php
mariadb:
image: mariadb:10.4.1
networks:
- backend
deploy:
restart_policy:
condition: on-failure
Expand All @@ -181,4 +201,9 @@ volumes:
mancenterdata:
loadbalancerdata:
mediawikidata:
mariadbdata:
mariadbdata:
networks:
web:
external: true
backend:
external: true

0 comments on commit 7091a70

Please sign in to comment.