-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (50 loc) · 1.01 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
version: "3.7"
services:
app:
container_name: app-ldap-gerenciador
image: ldap-gerenciador
build:
args:
user: dockerd
uid: 1000
context: ./php-fpm
restart: unless-stopped
working_dir: /var/www/projeto
volumes:
- ./projeto:/var/www/projeto
networks:
- backend
nginx:
image: nginx:1.17-alpine
restart: unless-stopped
container_name: nginx-ldap-gerenciador
user: root
ports:
- 8021:80
volumes:
- ./projeto:/var/www/projeto
- ./nginx/sites:/etc/nginx/conf.d
- ./nginx/logs:/var/log/nginx
networks:
- backend
db:
image: mysql
container_name: db-ldap-gerenciador
restart: unless-stopped
ports:
- 3306:3306
volumes:
- ./mysql/data:/var/lib/mysql
networks:
- backend
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ldap
MYSQL_USER: ldap
MYSQL_PASSWORD: ldap
networks:
backend:
driver: bridge
volumes:
db_data:
driver: local