Anpassungen docker compose file für mtc

main
Alex 2 years ago
parent c72c2079b6
commit 7127a95ad9

@ -1,15 +1,15 @@
version: '3'
networks:
rauru_net:
mtc_net:
volumes:
local_pgdata_rauru:
pgadmin-data:
local_pgdata_mtc:
pgadmin_data_mtc:
services:
app:
container_name: rauru_app
app_mtc:
container_name: mtc_app
build:
context: ./dockerfiles
dockerfile: nginx.dockerfile
@ -21,85 +21,85 @@ services:
volumes:
- ./src:/var/www/html:delegated
depends_on:
- php
- redis
- db
- mailhog
- pgadmin
- php_mtc
- redis_mtc
- db_mtc
- mailhog_mtc
- pgadmin_mtc
networks:
- rauru_net
db:
- mtc_net
db_mtc:
image: postgres
container_name: rauru_db
container_name: mtc_db
ports:
- "5432:5432"
environment:
POSTGRES_DB: rauru_db
POSTGRES_USER: rauru_user
POSTGRES_DB: mtc_db
POSTGRES_USER: mtc_user
POSTGRES_PASSWORD: secret
volumes:
- local_pgdata_rauru:/var/lib/postgresql/data
- local_pgdata_mtc:/var/lib/postgresql/data
#- ./rauru_pgdata:/var/lib/postgresql/data
networks:
- rauru_net
pgadmin:
- mtc_net
pgadmin_mtc:
image: dpage/pgadmin4
container_name: rauru_pgAdmin
container_name: mtc_pgAdmin
ports:
- "5050:80"
depends_on:
- db
- db_mtc
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.de
PGADMIN_DEFAULT_PASSWORD: secret
volumes:
- pgadmin-data:/var/lib/pgadmin
- pgadmin_data_mtc:/var/lib/pgadmin
#- ./pgadmindata:/var/lib/pgadmin
networks:
- rauru_net
php:
- mtc_net
php_mtc:
build:
context: ./dockerfiles
dockerfile: php.root.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
container_name: rauru_php
container_name: mtc_php
ports:
- "9000:9000"
volumes:
- ./src:/var/www/html:delegated
networks:
- rauru_net
- mtc_net
redis:
redis_mtc:
image: redis:alpine
container_name: rauru_redis
container_name: mtc_redis
restart: unless-stopped
ports:
- "6379:6379"
networks:
- rauru_net
- mtc_net
composer:
composer_mtc:
build:
context: ./dockerfiles
dockerfile: php.root.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
container_name: rauru_composer
container_name: mtc_composer
volumes:
- ./src:/var/www/html
depends_on:
- php
- php_mtc
entrypoint: [ 'composer', '--ignore-platform-reqs' ]
networks:
- rauru_net
- mtc_net
npm:
npm_mtc:
image: node:current-alpine
container_name: rauru_npm
container_name: mtc_npm
volumes:
- ./src:/var/www/html
ports:
@ -109,29 +109,29 @@ services:
working_dir: /var/www/html
entrypoint: [ 'npm' ]
networks:
- rauru_net
- mtc_net
artisan:
artisan_mtc:
build:
context: ./dockerfiles
dockerfile: php.root.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
container_name: rauru_artisan
container_name: mtc_artisan
volumes:
- ./src:/var/www/html:delegated
depends_on:
- db
- db_mtc
entrypoint: [ 'php', '/var/www/html/artisan' ]
networks:
- rauru_net
- mtc_net
mailhog:
container_name: rauru_mailhog
mailhog_mtc:
container_name: mtc_mailhog
image: mailhog/mailhog:latest
ports:
- "1025:1025"
- "8025:8025"
networks:
- rauru_net
- mtc_net

Loading…
Cancel
Save