-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.32 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
version: "3"
services:
strapi:
container_name: strapi-librairie-app
image: neo7studioweb/strapi-librairie
restart: unless-stopped
env_file: stack.env
environment:
DATABASE_CLIENT: mysql
DATABASE_HOST: strapiDB
DATABASE_PORT: 3306
DATABASE_NAME: ${MARIADB_DATABASE}
DATABASE_USERNAME: ${MARIADB_USERNAME}
DATABASE_PASSWORD: ${MARIADB_PASSWORD}
DATABASE_SSL: 'false'
volumes:
- ./app:/srv/app
ports:
- 1338:1337
networks:
- strapi
depends_on:
- strapiDB
strapiDB:
container_name: strapiDB
restart: unless-stopped
env_file: stack.env
image: mariadb:11.3
environment:
MARIADB_USER: ${MARIADB_USERNAME}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_DATABASE: ${MARIADB_DATABASE}
volumes:
- strapi-librairie-data:/var/lib/mysql
#- ./data:/var/lib/mysql # if you want to use a bind folder
ports:
- 3308:3306
networks:
- strapi
phpmyadmin:
image: phpmyadmin:5.2.1
restart: unless-stopped
ports:
- 8088:80
networks:
- strapi
depends_on:
- strapiDB
environment:
- PMA_HOST=strapiDB
volumes:
strapi-librairie-data:
networks:
strapi:
name: Strapi
driver: bridge