1
0
mirror of synced 2025-01-19 01:11:42 +03:00
woocommerce-module/docker-compose.yml
2020-03-25 10:35:08 +03:00

34 lines
675 B
YAML

version: '3'
services:
app:
build:
context: ./.docker
volumes:
- ./:/code
links:
- "mysql"
user: ${UID:-1000}:${GID:-1000}
depends_on:
- mysql
env_file:
- ./.env
environment:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_HOST=${DB_HOST}
- WP_VERSION=${WP_VERSION}
- WC_VERSION=${WC_VERSION}
- SKIP_DB_CREATE=true
mysql:
image: mysql:5.7
env_file:
- ./.env
environment:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASS}
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"