-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (39 loc) · 846 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (39 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.1'
services:
prefix_php:
image: wordpress:latest
ports:
- HOST_PORT:80
environment:
WORDPRESS_DB_HOST: prefix_mysql
WORDPRESS_DB_USER: wp_prefix
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wp_prefix
volumes:
- prefix_php:/var/www/html
restart: unless-stopped
networks:
bridge:
aliases:
- prefix_php
prefix_mysql:
image: mysql:latest
environment:
MYSQL_DATABASE: wp_prefix
MYSQL_USER: wp_prefix
MYSQL_PASSWORD: wordpress
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- prefix_mysql:/var/lib/mysql
restart: unless-stopped
networks:
bridge:
aliases:
- prefix_mysql
networks:
bridge:
# name: nginxbridge
# external: true
volumes:
prefix_php:
prefix_mysql: