-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
92 lines (85 loc) · 1.94 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
92 lines (85 loc) · 1.94 KB
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
version: '3.8'
services:
nginx:
build:
context: ./docker
dockerfile: nginx.dockerfile
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./docker/config/nginx/conf.d/:/etc/nginx/conf.d/
- ./docker/volumes/wordpress/html:/var/www/html
depends_on:
- strapi
- wordpress
wordpress:
build:
context: ./docker
dockerfile: wordpress.dockerfile
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: general
WORDPRESS_DB_PASSWORD: Password#01
WORDPRESS_DB_NAME: wordpress
volumes:
- ./docker/volumes/wordpress/html:/var/www/html
depends_on:
- mysql
mysql:
build:
context: ./docker
dockerfile: mysql.dockerfile
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: Password#01
MYSQL_DATABASE: general
MYSQL_USER: general
MYSQL_PASSWORD: Password#01
volumes:
- ./docker/config/mysql/init:/docker-entrypoint-initdb.d
- ./docker/volumes/mysql/data:/var/lib/mysql
strapi:
build:
context: ./docker
dockerfile: strapi.dockerfile
restart: always
ports:
- 1337:1337
environment:
DATABASE_CLIENT: mongo
DATABASE_HOST: mongo
DATABASE_PORT: 27017
DATABASE_NAME: strapi
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: secret
volumes:
- ./docker/volumes/strapi/app:/srv/app
depends_on:
- mongo
mongo:
build:
context: ./docker
dockerfile: mongo.dockerfile
restart: always
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: strapi
MONGO_INITDB_ROOT_PASSWORD: secret
volumes:
- ./docker/volumes/mongo/data:/data/db
mailhog:
build:
context: ./docker
dockerfile: mailhog.dockerfile
restart: "always"
ports:
- "1025:1025"
- "8025:8025"