-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1019 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1019 Bytes
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
services:
db:
image: postgres:14.8-alpine3.18
deploy:
replicas: 1
restart_policy:
condition: on-failure
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
POSTGRES_HOST_AUTH_METHOD: trust
LANG: en_US.utf8
LANGUAGE: en_US:en
LC_ALL: en_US.utf8
PORT: 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 5s
retries: 5
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- car_bot_network
bot:
image: sf-car-bot:latest
deploy:
replicas: 1
restart_policy:
condition: on-failure
env_file:
- .env
depends_on:
- db
networks:
- car_bot_network
volumes:
- media_cars:/app/media/cars
volumes:
media_cars:
driver: local
pgdata:
driver: local
networks:
car_bot_network:
driver: overlay