-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (34 loc) · 946 Bytes
/
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
version: "3.7"
services:
postgres:
image: postgres
container_name: delivery-borscht_postgres
restart: always
environment:
- POSTGRES_USER=delivery
- POSTGRES_PASSWORD=password
- POSTGRES_DB=delivery_psql
ports:
- ${POSTGRES_PORT:-5432}:5432
volumes:
- ./tables.sql:/docker-entrypoint-initdb.d/tables.sql
- /home/ubuntu/var/lib/postgresql/data:/var/lib/postgresql/data/
- /usr/share/postgresql:/usr/share/postgresql/
# - /var/lib/postgresql:/var/lib/postgresql/
redis:
image: redis:4.0-alpine
container_name: delivery-borscht_redis
restart: always
expose:
- 6379
main:
image: borschtwithcabbage/delivery-borscht_main:latest
container_name: delivery-borscht_main
restart: always
ports:
- 5000:5000
volumes:
- /etc/deliveryborscht/conf:/etc/deliveryborscht/conf
- /data:/data
depends_on:
- postgres