-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·53 lines (49 loc) · 1.08 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
executable file
·53 lines (49 loc) · 1.08 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
version: "3.2"
services:
nginx:
image: nginx:latest
container_name: hospitalcontrol-nginx
restart: unless-stopped
ports:
- "8080:80"
volumes:
- .:/var/www/
- ./.docker/nginx/nginx-default.conf:/etc/nginx/conf.d/default.conf
- ./.docker/nginx/nginx.conf:/etc/nginx/conf.d/custom.conf
- ./.docker/nginx/gzip.conf:/etc/nginx/conf.d/gzip.conf
networks:
- minhanet
depends_on:
- app
app:
build:
context: .
dockerfile: Dockerfile
container_name: hospitalcontrol-app
restart: unless-stopped
working_dir: /var/www/
expose:
- "9000"
volumes:
- .:/var/www/
- ./.docker/php/php-fpm/custom.ini:/usr/local/etc/php/conf.d/php-custom.ini
networks:
- minhanet
db:
image: mariadb
restart: always
ports:
- "3306:3306"
environment:
MARIADB_DATABASE: hospital
MARIADB_USER: root
MARIADB_ROOT_PASSWORD: qwe123
volumes:
- db:/var/lib/mysql
networks:
- minhanet
networks:
minhanet:
driver: bridge
volumes:
db: