-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.14 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
networks:
network_private:
driver: bridge
network_public:
driver: bridge
services:
site_system:
build:
context: .
dockerfile: Dockerfile
container_name: conteiner_site_system
# command: ["./wait-for-it.sh", "db_paulistense:3306", "-t", "30"]
networks:
- network_private
- network_public
environment:
- BANCO_HOST_IP=$BANCO_HOST_IP
- BANCO_PORTA=$BANCO_PORTA
- BANCO_USUARIO=$BANCO_USUARIO
- BANCO_SENHA=$BANCO_SENHA
- BANCO_NOME=$BANCO_NOME
# links:
# - db_paulistense
# db_paulistense:
# image: mysql:latest
# container_name: container_db_paulistense
# ports:
# - '3306:3306'
# networks:
# - network_private
# - network_public
# volumes:
# - './setup.sql:/docker-entrypoint-initdb.d/setup.sql'
# environment:
# - MYSQL_ROOT_PASSWORD=$BANCO_SENHA
# - MYSQL_USER=$BANCO_USUARIO
# - MYSQL_PASS=$BANCO_SENHA
# site_proxy:
# build: ./nginx
# container_name: container_site_proxy
# ports:
# - "80:80"
# networks:
# - network_public
# links:
# - site_system