-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (46 loc) · 887 Bytes
/
docker-compose.yaml
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
services:
pg:
build:
dockerfile: ./docker/db.Dockerfile
context: .
image: vinnioh/pg_movie
container_name: pg
ports:
- "5432:5432"
networks:
- nwmovie
volumes:
- pgdata:/var/lib/postgresql/data/
redis:
build:
dockerfile: ./docker/redis.Dockerfile
context: .
image: vinnieoh/redis_movie
container_name: redis
ports:
- "6379:6379"
networks:
- nwmovie
volumes:
- redisdata:/data
# api:
# build:
# dockerfile: ./docker/api.Dockerfile
# context: .
# image: vinnieoh/api_movie
# container_name: api_movie
# ports:
# - "8080:8080"
# networks:
# - nwmovie
# depends_on:
# - pg
# - redis
# env_file:
# - ./dotenv_files/.env
networks:
nwmovie:
driver: bridge
volumes:
pgdata:
redisdata: