forked from nlile/foodadvisor-turbo-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 842 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
version: "3.9"
services:
db:
container_name: "${DATABASE_HOST:-turbo_db}"
image: postgres
ports:
- "5432:5432"
env_file:
- ./apps/api/.env
volumes:
- turbo-db-data:/var/lib/postgresql/data
restart: unless-stopped
networks:
- turbo-network
- default
#turborepo
turbo:
container_name: turbo_strapi_food
build:
context: .
dockerfile: dev.Dockerfile
ports:
- "3000:3000"
- "1337:1337"
environment:
- STRAPI_VERSION="${STRAPI_VERSION:-4.2.0}" # ensure package.json matches
volumes:
- ./:/app/
# Docker will create a volume from the path below
- /app/node_modules/
restart: on-failure
networks:
- turbo-network
- default
volumes:
turbo-db-data:
networks:
turbo-network:
driver: bridge