-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (59 loc) · 1.36 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
version: '3'
services:
app:
image: php
container_name: unilab-testing-app
restart: unless-stopped
tty: true
working_dir: /var/www
build:
context: .
dockerfile: Dockerfile
networks:
- unilab-testing-app-network
volumes:
- "nfsmount:/var/www"
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
webserver:
image: nginx:alpine
container_name: unilab-testing-webserver
restart: unless-stopped
tty: true
ports:
- "81:80"
- "444:443"
networks:
- unilab-testing-app-network
volumes:
- "nfsmount:/var/www"
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
db:
image: mysql:8.0.21
container_name: unilab-testing-db
restart: unless-stopped
tty: true
ports:
- "${DB_PORT}:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_HOST: "%"
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- unilab-testing-app-network
volumes:
- dbdata:/var/lib/mysql/
- ./docker/mysql/my.cnf:/etc/mysql/my.cnf
networks:
unilab-testing-app-network:
driver: bridge
volumes:
dbdata:
driver: local
nfsmount:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
device: ":${APP_PATH}"