-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-dev.yml
113 lines (113 loc) · 3.56 KB
/
docker-compose-dev.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3"
services:
bts-database:
image: postgres:10.1
restart: always
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_HOST=database
volumes:
- ./db/setup:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
network_mode: "bridge"
container_name: "bts-ce-database"
command: ["postgres","-c","max_locks_per_transaction=1024"]
bts-msgbroker:
image: rabbitmq:3.7.4-management
restart: always
ports:
- "4369:4369"
- "5671:5671"
- "5672:5672"
- "15672:15672"
- "15674:15674"
- "61613:61613"
- "15670:15670"
network_mode: "bridge"
container_name: "bts-ce-msgbroker"
command: bash -c "rabbitmq-server; rabbitmq-plugins enable rabbitmq_web_stomp"
bts-api:
image: registry.gitlab.com/bts-ce/bts-ce-api
ports:
- 8181:8181
restart: always
environment:
- POSTGRES_PASSWORD=password
- BTS_DB_HOST=database
- BTS_DB_NAME=bts
- BTS_DB_USER=bodastage
- BTS_DB_PASS=password
- BTS_DB_PORT=5432
volumes:
- ./bts-ce-api:/app
- ./bts-ce-database:/migrations
depends_on:
- bts-database
- bts-msgbroker
links:
- "bts-database:database"
network_mode: "bridge"
container_name: "bts-ce-api"
command: ["/wait-for-it.sh","database:5432","--","/migrate-and-start-web-server.sh"]
bts-web:
image: registry.gitlab.com/bts-ce/bts-ce-web
ports:
- "80:80"
network_mode: "bridge"
container_name: "bts-ce-web"
depends_on:
- bts-msgbroker
- bts-api
bts-mediation:
image: registry.gitlab.com/bts-ce/bts-ce-mediation
restart: always
environment:
- POSTGRES_PASSWORD=password
ports:
- "8080:8080"
environment:
- POSTGRES_HOST=database
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgres+psycopg2://airflow:airflow@database:5432/airflow
- AIRFLOW__CORE__EXECUTOR=LocalExecutor
- LOAD_EX=n
- EXECUTOR=Local
- BTS_DB_HOST=database
- BTS_DB_NAME=bts
- BTS_DB_USER=bodastage
- BTS_DB_PASS=password
- BTS_DB_PORT=5432
volumes:
- ./mediation/dags:/usr/local/airflow/dags
- ./mediation:/mediation
command: webserver
depends_on:
- bts-database
- bts-msgbroker
network_mode: "bridge"
container_name: "bts-ce-mediation"
links:
- "bts-database:database"
bts-cache:
image: redis:latest
ports:
- "6380:6380"
network_mode: "bridge"
container_name: "bts-ce-cache"
bts-ftp:
image: stilliard/pure-ftpd:hardened
restart: always
environment:
- PUBLICHOST=localhost
- ADDED_FLAGS=-d -d
- FTP_USER_NAME=bodastage
- FTP_USER_PASS=Password@7
- FTP_USER_HOME=/home/ftpusers/bodastage
ports:
- "21:21"
- "30000-30009:30000-30009"
volumes:
- /home/bodastage/bts-ce/mediation/data:/home/ftpusers/bodastage
network_mode: "bridge"
container_name: "bts-ce-ftp"
# command: ["pure-pw","useradd","bodastage","-f", "/etc/pure-ftpd/passwd/pureftpd.passwd", "-m", "-u", "ftpuser", "-d", "/home/ftpusers/bodastage"]