1
0
mirror of synced 2025-01-18 08:51:41 +03:00
woocommerce-module/docker-compose.yml

34 lines
675 B
YAML
Raw Normal View History

2020-02-27 14:12:42 +03:00
version: '3'
services:
app:
build:
context: ./.docker
volumes:
- ./:/code
links:
- "mysql"
2020-03-03 11:30:13 +03:00
user: ${UID:-1000}:${GID:-1000}
2020-02-27 14:12:42 +03:00
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"