-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1 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
version: '3.7'
services:
python_gost:
container_name: python_gost
build:
dockerfile: Dockerfile-local
context: .
env_file:
- .env
environment:
- DATABASE_URL=postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB
- REDIS_URL=redis://localhost:6379/0
restart: always
networks:
- komtek_net
volumes:
- .:/usr/src/app/
depends_on:
- db
- redis_db
db:
container_name: postgres
image: postgres:13
environment:
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_DB: $POSTGRES_DB
restart: always
networks:
- komtek_net
ports:
- $POSTGRES_PORT:5432
volumes:
- komtek-data-python-gost:/var/lib/postgresql/data
redis_db:
image: redis:alpine
volumes:
- redis_data:/data
networks:
- komtek_net
volumes:
komtek-data-python-gost:
redis_data:
networks:
komtek_net:
name: komtek_net
driver: bridge