-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (70 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
74 lines (70 loc) · 1.51 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.3"
services:
#aplicação web (PHP+NGINX)
web:
container_name: web
image: lfelipeapo/php-nginx-web:1.0.0
build:
args:
user: admin
uid: 1000
context: .
dockerfile: ./Dockerfile
networks:
- rede
working_dir: /var/www
volumes:
- ./applications:/var/www
- ./docker/nginx/sites:/etc/nginx/sites-available
ports:
- "80:8000" #http
- "443:443" #https
- "8080:8080"
- "8081:8081"
- "8082:8082"
- "8083:8083"
- "8084:8084"
- "8085:8085"
- "8086:8086"
- "8087:8087"
- "8088:8088"
- "8089:8089"
depends_on:
- postgres_db
- mysql
# aplicação Postgres
postgres_db:
container_name: postgres_db
image: postgres:14.3-alpine
restart: always
networks:
- rede
volumes:
- POSTGRES_VOLUME:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: senha_exemplar_postgres
POSTGRES_DB: db_postgres_exemplo
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 20001:5432
# aplicação MySQL
mysql:
container_name: mysql
image: mysql:8.0.29-debian
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- MYSQL_VOLUME:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: senha_exemplar_mysql
MYSQL_DATABASE: db
networks:
- rede
ports:
- 30000:3306
networks:
rede:
driver: bridge
volumes:
POSTGRES_VOLUME:
MYSQL_VOLUME: