-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
45 lines (42 loc) · 1.31 KB
/
docker-compose.local.yml
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
45
version: '3.7'
services:
# The reverse proxy service (Træfik)
proxy:
image: traefik:v1.1.0 # The official Traefik docker image
command: --docker # Enables the web UI and tells Træfik to listen to docker
deploy:
replicas: 1
restart_policy:
condition: on-failure
ports:
- "80:80" # The HTTP port
- "443:443" # The HTTPS port
- "8080:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
web:
image: wordpress
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.frontend.rule=Host:www.perlur.cloud.localhost"
volumes:
- ./src/wordpress/wp-content/themes/:/var/www/html/wp-content/themes/
- ./src/wordpress/wp-content/plugins/:/var/www/html/wp-content/plugins/
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: www_perlur_cloud
WORDPRESS_DB_PASSWORD: secret_password
WORDPRESS_DB_NAME: www_perlur_cloud
db:
image: mariadb
deploy:
replicas: 1
restart_policy:
condition: on-failure
environment:
MYSQL_DATABASE: www_perlur_cloud
MYSQL_USER: www_perlur_cloud
MYSQL_PASSWORD: secret_password
MYSQL_RANDOM_ROOT_PASSWORD: '1'