-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (63 loc) · 1.61 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
65
66
67
services:
mysql:
build:
context: ./docker
dockerfile: Dockerfile
target: mysql
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: dw_courses
ports:
- "3307:3306" # Mapeando a porta 3307 do host para a porta 3306 do container
volumes:
- mysql_data:/var/lib/mysql
- ./docker/init/mysql:/docker-entrypoint-initdb.d
postgresql:
build:
context: ./docker
dockerfile: Dockerfile
target: postgresql
container_name: postgresql
environment:
POSTGRES_PASSWORD: 1234
POSTGRES_DB: courses
ports:
- "5435:5432" # Mapeando a porta 5435 do host para a porta 5432 do container
volumes:
- postgresql_data:/var/lib/postgresql/data
- ./docker/init/postgresql:/docker-entrypoint-initdb.d
python-scripts:
build:
context: .
dockerfile: docker/Dockerfile
target: python-scripts
container_name: python-scripts
volumes:
- ./scripts:/scripts
- ./data:/data
depends_on:
- mysql
- postgresql
entrypoint: ["/scripts/entrypoint.sh"]
apache-hop:
build:
context: .
dockerfile: docker/Dockerfile
target: apache-hop
container_name: apache-hop
environment:
HOP_LOG_LEVEL: Basic
HOP_FILE_PATH: '/files/dw_hop/dw_courses/dw_work.hwf'
HOP_PROJECT_NAME: 'dw_hop'
HOP_PROJECT_FOLDER: '/files/dw_hop'
HOP_RUN_CONFIG: 'local'
depends_on:
- mysql
- postgresql
- python-scripts
volumes:
- ./scripts/dw_hop:/files/dw_hop
volumes:
mysql_data:
postgresql_data: