-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
81 lines (70 loc) · 1.63 KB
/
docker-compose.dev.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
app-nextjs:
container_name: app-nextjs
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
env_file: ".env.development"
networks:
- app-network
express-backend:
container_name: express-backend
build:
context: ../express-backend/
dockerfile: Dockerfile.dev
ports:
- "3001:3001"
volumes:
- ../express-backend:/express-backend
env_file: "../express-backend/.env.development"
networks:
- app-network
restart: on-failure
strapi:
container_name: strapi
build:
context: ../strapi_cms
dockerfile: Dockerfile
ports:
- "1337:1337"
env_file: "../strapi_cms/.env.development"
restart: unless-stopped
networks:
- app-network
- strapi
depends_on:
- strapi_db
volumes:
- ../strapi_cms/config:/opt/app/config
- ../strapi_cms/src:/opt/app/src
- ../strapi_cms/package.json:/opt/package.json
- ../strapi_cms/package-lock.json:/opt/package-lock.json
- ../strapi_cms/.env:/opt/app/.env
- ../strapi_cms/public/uploads:/opt/app/public/uploads
strapi_db:
container_name: strapi_db
image: postgres:14
restart: unless-stopped
environment:
- POSTGRES_USER=strapi
- POSTGRES_PASSWORD=strapi
- POSTGRES_DB=strapi
volumes:
- ../strapi_cms/data/db:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- strapi
volumes:
strapi-data:
networks:
app-network:
driver: bridge
strapi:
name: Strapi
driver: bridge