-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 864 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 864 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
version: "3.3"
services:
proje:
image: wordpress:latest
ports:
- 9005:80
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: proje
volumes:
- wp-app:/var/www/html # Full wordpress project
- wp-plugins:/var/www/html/wp-content/plugins/ # Plugin development
- wp-themes:/var/www/html/wp-content/themes/ # Theme development
networks:
- proxy
labels:
- "traefik.docker.network=proxy"
- "traefik.enable=true"
- "traefik.http.routers.proje.rule=Host(`proje.boyutyazilim.com`)"
- "traefik.http.routers.proje.entrypoints=https"
- "traefik.http.routers.proje.tls.certresolver=http"
volumes:
wp-plugins:
wp-themes:
wp-app:
networks:
proxy:
external: true