-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (50 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
52 lines (50 loc) · 1.28 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
version: '3'
services:
nginx:
tty: true
restart: always
container_name: container.nginx
build:
context: .
dockerfile: docker/nginx/Dockerfile
ports:
- "80:80"
volumes:
- ./public:/app/public
- ./src:/app/src
networks:
- php-network
depends_on:
- phpfpm
phpfpm:
tty: true
restart: always
container_name: container.phpfpm
build:
context: .
dockerfile: docker/php/Dockerfile
volumes:
- ./public:/app/public
- ./src:/app/src
- ./resources:/app/resources
networks:
- php-network
mariadb:
tty: true
restart: always
container_name: container.mariadb
image: mariadb
ports:
- '3306:3306'
volumes:
- './docker/mysql/config/mariadb.cnf:/etc/mysql/conf.d/custom.cnf:ro'
- './setup:/docker-entrypoint-initdb.d'
#- './docker/mysql/dbdata:/var/lib/mysql'
networks:
- php-network
environment:
MARIADB_ROOT_PASSWORD_HASH: "*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19"
MYSQL_DATABASE: astrx
networks:
php-network:
driver: bridge