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

46 lines
1.2 KiB

version: "3"
services:
mysql:
container_name: "seminariodb"
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: ${MYSQL_DB}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_RANDOM_ROOT_PASSWORD: "1"
ports:
- "3308:3306"
volumes:
- ./docker/mysql:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
directus:
container_name: directus_seminario
image: directus/directus:v8-apache
restart: always
ports:
- "13000:80"
environment:
DIRECTUS_APP_ENV: "production"
DIRECTUS_AUTH_PUBLICKEY: ${DIRECTUS_AUTH_PUBLICKEY}
DIRECTUS_AUTH_SECRETKEY: ${DIRECTUS_AUTH_SECRETKEY}
DIRECTUS_DATABASE_HOST: "seminariodb"
DIRECTUS_DATABASE_PORT: "3306"
DIRECTUS_DATABASE_NAME: ${MYSQL_DB}
DIRECTUS_DATABASE_USERNAME: ${MYSQL_USER}
DIRECTUS_DATABASE_PASSWORD: ${MYSQL_PASSWORD}
DIRECTUS_INSTALL_TITLE: "Seminario CMS"
volumes:
- ./docker/directus/config:/var/directus/config
- ./docker/directus/uploads:/var/directus/public/uploads
adminer:
container_name: adminer_seminario
image: adminer
ports:
- "8090:8080"