-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
69 lines (67 loc) · 1.55 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
68
69
version: '3'
services:
db:
build: ./src/db
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: new_docker_user
POSTGRES_DB: new_docker_db
volumes:
- db_data:/var/lib/postgresql/data
# Health check configuration
healthcheck:
test: ["CMD-SHELL", "pg_isready -U new_docker_user -d new_docker_db"]
interval: 30s
timeout: 10s
retries: 3
networks:
- postgresql
ws:
build: ./src/ws
restart: always
environment:
DEST_EMAIL: ${DEST_EMAIL}
SRC_EMAIL: ${SRC_EMAIL}
RELEASE_VERSION: ${RELEASE_VERSION}
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
DB_HOST: db
DB_NAME: new_docker_db
DB_USER: new_docker_user
DB_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "8000:8000"
depends_on:
- db
networks:
- postgresql
ts:
build: ./src/ts
restart: always
environment:
WS_HOST: ws
depends_on:
- ws
networks:
- postgresql
curl:
image: curlimages/curl
command: sh -c "sleep 30 && curl http://ws:8000/run-task/ogre"
networks:
- postgresql
depends_on:
- ts
web:
image: vfedotovsdocker/st-web:latest-amd64 # Use the specified Docker image
ports:
- "80:8501"
environment:
- STREAMLIT_SERVER_PORT=8501 # Set the port for the Streamlit server
networks:
postgresql:
driver: bridge
volumes:
db_data:
driver: local