-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
94 lines (88 loc) · 2.15 KB
/
docker-compose.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.8"
services:
postgres:
image: postgres:10.4
ports:
- 5432:5432
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
container_name: medusa-postgres
volumes:
- ./dev/medusa/docker/postgresql/data:/var/lib/postgresql/data
profiles: ["medusa"]
pgadmin:
container_name: medusa-pgadmin
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- 5050:80
depends_on:
- postgres
profiles: ["medusa"]
redis:
image: redis
ports:
- 6379:6379
container_name: medusa-redis
profiles: ["medusa"]
nginx:
build: ./dev/wp/docker/nginx/
ports:
- 80:80
- 443:443
links:
- php
volumes:
- ./dev/wp/web:/var/www/web:cached
- ./dev/wp/shared:/var/www/shared:delegated
- ./dev/wp/src:/var/www/src:cached
- ./wordpress-plugin:/wordpress-plugin:cached
container_name: medusawp.test
profiles: ["wp"]
php:
build: ./dev/wp/docker/php/
expose:
- 9000
environment:
DB_HOST: db
DB_NAME: ${MYSQL_DATABASE}
DB_USER: ${MYSQL_USER}
DB_PASS: ${MYSQL_PASSWORD}
PHP_ENV: ${PHP_ENV}
MEDUSAWP_DEV: ${MEDUSAWP_DEV:-true}
links:
- db
volumes:
- ./dev/wp/web:/var/www/web:cached
- ./dev/wp/shared:/var/www/shared:delegated
- ./dev/wp/src:/var/www/src:cached
- ./wordpress-plugin:/wordpress-plugin:cached
profiles: ["wp"]
db:
image: mysql:8.0
ports:
- 3306:3306
volumes:
- ./dev/wp/db:/docker-entrypoint-initdb.d
- ./dev/wp/db:/db-imports
- ./dev/wp/docker/data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
profiles: ["wp"]
phpmyadmin:
image: phpmyadmin:latest
ports:
- 8080:80
links:
- db
environment:
PMA_HOST: db
profiles: ["wp"]