Skip to content

Commit

Permalink
update docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoschkin committed Jan 21, 2025
1 parent 001d4cf commit 390dbeb
Showing 1 changed file with 38 additions and 36 deletions.
74 changes: 38 additions & 36 deletions multidocker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
volumes:
sitebuild:
config:
assets:
profiles:
traindata:
Expand Down Expand Up @@ -84,16 +85,16 @@ services:
- OUT_PATH=/assets/
profiles: [ "all", "asset-server", "website", "fullstack" ]

datacoredb:
image: mongo:4.4.6
container_name: datacoredb
volumes:
- datacore-mongo:/data/db
env_file:
- .env
ports:
- '27017-27019:27017-27019'
profiles: ["all", "site-server", "bot", "fullstack" ]
# datacoredb:
# image: mongo:4.4.6
# container_name: datacoredb
# volumes:
# - datacore-mongo:/data/db
# env_file:
# - .env
# ports:
# - '27017-27019:27017-27019'
# profiles: ["all", "site-server", "bot", "fullstack" ]

site-server:
image: datacore/site-server
Expand Down Expand Up @@ -136,40 +137,41 @@ services:
- sitebuild:/sitebuild:ro
- assets:/assets:ro
- profiles:/profiles:ro
- /home/ubuntu/data/config:/data:ro
- nginx-logs:/var/log/nginx:rw
- ${NGINX_CONF}:/etc/nginx/conf.d/default.conf:rw
depends_on:
- site-server
- datacoredb
profiles: [ "all", "website", "asset-server", "site-server", "fullstack", "bot" ]

mediawiki:
image: mediawiki
container_name: MediaWiki
deploy:
restart_policy:
condition: on-failure
volumes:
- wiki:/var/www/html:rw
ports:
- 8290:80
links:
- database
profiles: [ "all", "wiki" ]
# mediawiki:
# image: mediawiki
# container_name: MediaWiki
# deploy:
# restart_policy:
# condition: on-failure
# volumes:
# - wiki:/var/www/html:rw
# ports:
# - 8290:80
# links:
# - database
# profiles: [ "all", "wiki" ]

database:
image: mariadb
restart: always
container_name: wiki-mariadb
environment:
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: example
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes:
- mariadb:/var/lib/mysql
profiles: [ "all", "wiki" ]
# database:
# image: mariadb
# restart: always
# container_name: wiki-mariadb
# environment:
# # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
# MYSQL_DATABASE: my_wiki
# MYSQL_USER: wikiuser
# MYSQL_PASSWORD: example
# MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
# volumes:
# - mariadb:/var/lib/mysql
# profiles: [ "all", "wiki" ]

node_exporter:
image: prom/node-exporter
Expand Down

0 comments on commit 390dbeb

Please sign in to comment.