Anpassungen docker compose file für mtc

main
Alex 2 years ago
parent c72c2079b6
commit 7127a95ad9

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

Loading…
Cancel
Save