-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
56 lines (45 loc) · 1004 Bytes
/
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
version: '3.6'
services:
web:
image: nginx
container_name: galeno-nginx
restart: always
volumes:
- "./galeno-app:/var/www/html"
- "./nginx:/etc/nginx/"
ports:
- "9322:80"
php:
#image: php:7.2-fpm
container_name: galeno-php
build:
context: ./
dockerfile: php.dockerfile
volumes:
- "./galeno-app:/var/www/html"
mariadb:
image: mariadb
container_name: galeno-db
restart: always
volumes:
- galeno-db-vol:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_root_password
MYSQL_DATABASE: galeno
secrets:
- db_root_password
ports:
- "127.0.0.1:3322:3306"
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# container_name: galeno-pma
# restart: always
# environment:
# - PMA_HOST=galeno-db
# ports:
# - "127.0.0.1:9301:80"
secrets:
db_root_password:
file: ./secrets/db_root_password
volumes:
galeno-db-vol: