forked from bjverde/cnpjrfb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (55 loc) · 1.42 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
60
61
62
63
64
# sudo docker-compose build
# sudo docker-compose up
# sudo docker-compose up --build
# Subir em background
# sudo docker-compose -f docker-compose.yml up -d
# How use iterative mode container
# sudo docker-compose exec apache_php bash
#Purging All Unused or Dangling Images, Containers, Volumes, and Networks
#sudo docker system prune -a
version: '3.8'
services:
cnpjrfb:
build:
context: .
dockerfile: Dockerfile
image: cnpjrfb:v2
container_name: cnpjrfb
restart: always
ports:
- "80:80"
networks:
- cnpj-network
volumes:
- ./www:/var/www/html:rw #WWW ROOT
- ./log_apache:/var/log/apache2:rw #Log Apahce
- ./dados_receita:/var/opt/dados_receita:rw
database:
image: postgres
container_name: postgres
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
networks:
- cnpj-network
#volumes:
#- ./log_postgresql:/var/log/postgresql:rw #Log PosgreSQL
#- ./postgresql:/var/lib/postgresql/data:rw
pgadmin:
image: dpage/pgadmin4
container_name: pgAdmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: 123456
ports:
- "5050:5050"
networks:
- cnpj-network
networks:
cnpj-network:
driver: bridge