-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.45 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
version: "3.8"
services:
db:
image: postgres:15
container_name: ais_postgres
restart: always
environment:
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_DB: $POSTGRES_DB
volumes:
- postgres_data:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
listener:
build: ./listener
container_name: ais_listener
restart: always
depends_on:
- db
environment:
DATABASE_URL: $DATABASE_URL
AIS_HOST: $AIS_HOST
AIS_PORT: $AIS_PORT
volumes:
- ./listener:/app
- ./utils:/app/utils
extra_hosts:
- "host.docker.internal:host-gateway"
command: ["python", "listener.py"]
dispatch:
build: ./dispatch
container_name: ais_dispatch
restart: always
depends_on:
- db
environment:
DATABASE_URL: $DATABASE_URL
REMOTE_SERVER_ADDRESS: $REMOTE_SERVER_ADDRESS
REMOTE_SERVER_USER: $REMOTE_SERVER_USER
REMOTE_SERVER_PW: $REMOTE_SERVER_PW
volumes:
- ./dispatch:/app
- ./utils:/app/utils
command: ["python", "dispatch.py"]
config_ui:
build: ./ui
container_name: ais_ui
restart: always
depends_on:
- db
environment:
DATABASE_URL: $DATABASE_URL
ports:
- "5000:5000"
volumes:
- ./ui:/app
- ./utils:/app/utils
command: ["python", "app.py"]
volumes:
postgres_data: