-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.55 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
54
55
56
57
58
59
60
61
version: "3.7"
services:
# This redis without auth is for local dev
portfolio-redis:
image: redis:latest
ports:
- 6379:6379
container_name: portfolio-redis
# This db is just for local development.
portfolio-postgres:
image: postgres:latest
environment:
POSTGRES_DB: portfolio
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
ports:
- 5432:5432
volumes:
- ./persistence/postgres:/var/lib/postgresql/data
container_name: portfolio-postgres
# The django API
portfolio-backend:
build: backend
image: portfolio-backend:latest
ports:
- 8000:8000
volumes:
- ./backend:/backend
depends_on:
- portfolio-redis
- portfolio-postgres
container_name: portfolio-backend
# Strapi instance for local dev
portfolio-strapi:
build: strapi
image: portfolio-strapi:latest
ports:
- 1337:1337
volumes:
- ./strapi:/strapi
depends_on:
- portfolio-postgres
container_name: portfolio-strapi
#portfolio-frontend:
# build: frontend
# image: portfolio-frontend:latest
# ports:
# - 3001:3000
# volumes:
# - ./frontend:/frontend
# environment:
# HOST: 0.0.0.0
# depends_on:
# - portfolio-backend
# - portfolio-strapi
# container_name: portfolio-frontend