-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 925 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 925 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
version: '3'
services:
web:
depends_on:
- postgres
- redis
build:
context: .
dockerfile: ./docker/web/Dockerfile
volumes:
- ./cli_api:/app/cli_api
- ./tests:/app/tests
# Allows launching of sibling containers
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- ./.env
ports:
- "5000:5000"
postgres:
container_name: postgres-cli_api
restart: always
build: ./docker/postgresql
env_file:
- ./.env
volumes:
- ./docker/postgresql/init_scripts:/docker-entrypoint-intdb.d
ports:
- "5432:5432"
redis:
env_file:
- ./.env
image: redis:latest
restart: unless-stopped
stop_grace_period: 3s
ports:
- "6379:6379"