You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
2.7 KiB
YAML

2 years ago
version: '3'
networks:
mtc_net:
2 years ago
volumes:
local_pgdata_mtc:
pgadmin_data_mtc:
2 years ago
services:
app_mtc:
container_name: mtc_app
2 years ago
build:
context: ./dockerfiles
dockerfile: nginx.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
ports:
- "80:80"
volumes:
- ./src:/var/www/html:delegated
depends_on:
- php_mtc
- redis_mtc
- db_mtc
- mailhog_mtc
- pgadmin_mtc
2 years ago
networks:
- mtc_net
db_mtc:
2 years ago
image: postgres
container_name: mtc_db
2 years ago
ports:
- "5432:5432"
environment:
POSTGRES_DB: mtc_db
POSTGRES_USER: mtc_user
2 years ago
POSTGRES_PASSWORD: secret
volumes:
- local_pgdata_mtc:/var/lib/postgresql/data
2 years ago
#- ./rauru_pgdata:/var/lib/postgresql/data
networks:
- mtc_net
pgadmin_mtc:
2 years ago
image: dpage/pgadmin4
container_name: mtc_pgAdmin
2 years ago
ports:
- "5050:80"
depends_on:
- db_mtc
2 years ago
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.de
PGADMIN_DEFAULT_PASSWORD: secret
volumes:
- pgadmin_data_mtc:/var/lib/pgadmin
2 years ago
#- ./pgadmindata:/var/lib/pgadmin
networks:
- mtc_net
php_mtc:
2 years ago
build:
context: ./dockerfiles
dockerfile: php.root.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
container_name: mtc_php
2 years ago
ports:
- "9000:9000"
volumes:
- ./src:/var/www/html:delegated
networks:
- mtc_net
2 years ago
redis_mtc:
2 years ago
image: redis:alpine
container_name: mtc_redis
2 years ago
restart: unless-stopped
ports:
- "6379:6379"
networks:
- mtc_net
2 years ago
composer_mtc:
2 years ago
build:
context: ./dockerfiles
dockerfile: php.root.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
container_name: mtc_composer
2 years ago
volumes:
- ./src:/var/www/html
depends_on:
- php_mtc
2 years ago
entrypoint: [ 'composer', '--ignore-platform-reqs' ]
networks:
- mtc_net
2 years ago
npm_mtc:
2 years ago
image: node:current-alpine
container_name: mtc_npm
2 years ago
volumes:
- ./src:/var/www/html
ports:
- "3000:3000"
- "3001:3001"
- "5173:5173"
working_dir: /var/www/html
entrypoint: [ 'npm' ]
networks:
- mtc_net
2 years ago
artisan_mtc:
2 years ago
build:
context: ./dockerfiles
dockerfile: php.root.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
container_name: mtc_artisan
2 years ago
volumes:
- ./src:/var/www/html:delegated
depends_on:
- db_mtc
2 years ago
entrypoint: [ 'php', '/var/www/html/artisan' ]
networks:
- mtc_net
2 years ago
mailhog_mtc:
container_name: mtc_mailhog
2 years ago
image: mailhog/mailhog:latest
ports:
- "1025:1025"
- "8025:8025"
networks:
- mtc_net