2023-02-10 02:59:04 +00:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
2023-02-16 03:48:26 +00:00
|
|
|
app:
|
2023-02-10 02:59:04 +00:00
|
|
|
image: wordpress
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
environment:
|
|
|
|
WORDPRESS_DB_HOST: db
|
|
|
|
WORDPRESS_DB_USER: exampleuser
|
|
|
|
WORDPRESS_DB_PASSWORD: examplepass
|
|
|
|
WORDPRESS_DB_NAME: exampledb
|
|
|
|
volumes:
|
2023-02-16 03:48:26 +00:00
|
|
|
- ../..:/workspaces:cached
|
2023-02-10 02:59:04 +00:00
|
|
|
|
|
|
|
db:
|
|
|
|
image: mariadb
|
2023-02-16 03:48:26 +00:00
|
|
|
restart: unless-stopped
|
2023-02-10 02:59:04 +00:00
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: exampledb
|
|
|
|
MYSQL_USER: exampleuser
|
|
|
|
MYSQL_PASSWORD: examplepass
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|