-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (45 loc) · 902 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
38
39
40
41
42
43
44
45
46
47
48
49
version: '3.7'
services:
api:
build:
context: .
dockerfile: docker/api/Dockerfile.dev
container_name: api
hostname: api
env_file:
- .env.docker
ports:
- '8000:8000'
networks:
- backend
tty: true
depends_on:
- db
volumes:
- ./src:/home/docker_user/app
- ./migrations:/home/docker_user/migrations
- ./alembic.ini:/home/docker_user/domain/alembic.ini
- ./alembic.ini:/home/docker_user/app/alembic.ini
db:
build:
context: .
dockerfile: docker/db/Dockerfile
container_name: db
hostname: db
ports:
- '5432:5432'
networks:
- backend
redis:
build:
context: .
dockerfile: docker/redis/Dockerfile
container_name: redis
hostname: redis
ports:
- '6379:6379'
networks:
- backend
networks:
backend:
driver: 'bridge'