-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
34 lines (33 loc) · 1.03 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
version: '3'
include:
- docker-dev.yml
services:
directus:
container_name: ${DOCKER_DIRECTUS_CONTAINER_NAME}
image: directus/directus:${DOCKER_DIRECTUS_VERSION}
ports:
- 8055:8055
volumes:
# By default, uploads are stored in /directus/uploads
# Always make sure your volumes matches the storage root when using
# local driver
- ${DOCKER_DIRECTUS_FILES}:/directus/uploads
# Make sure to also mount the volume when using SQLite
# - ./database:/directus/database
# If you want to load extensions from the host
- ${DOCKER_DIRECTUS_EXTENSIONS}:/directus/extensions
- ${DOCKER_DIRECTUS_SNAPSHOTS}:/directus/snapshots
- ./scripts:/directus/scripts
- ./startup.sh:/directus/startup.sh
networks:
- directus
env_file:
- .env
depends_on:
- cache
- database
entrypoint: [ "/bin/sh", "/directus/startup.sh" ]
# networks:
# directus:
# name: ${DOCKER_DIRECTUS_NETWORKNAME}
# external: ${DOCKER_DIRECTUS_EXTERNAL_NETWORK}