don't manage volume path with podman

missytake 2020-05-19 16:53:53 +02:00
parent d298ec7677
commit c33682e5cd
1 changed files with 3 additions and 8 deletions

View File

@ -1,15 +1,10 @@
version: '3.3' version: '3.3'
volumes:
db_data:
external:
name: db_data
services: services:
db: db:
image: mysql:5.7 image: mysql:5.7
volumes: volumes:
- db_data:/var/lib/mysql - ../db_data/_data/:/var/lib/mysql
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
@ -23,8 +18,8 @@ services:
image: wordpress:latest image: wordpress:latest
links: links:
- db - db
ports: ports:
- 80:80 - 80:80
restart: unless-stopped restart: unless-stopped
environment: environment:
WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_HOST: db:3306