forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
42 lines (40 loc) · 1.38 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
version: "3.7"
services:
init:
command: /bin/sh -c "
./scripts/create_mount_directories.sh /local_parent ${HACK_LOCAL_ROOT_PARENT} ${LOCAL_ROOT};
./scripts/create_mount_directories.sh /dev_parent ${HACK_DEV_ROOT_PARENT} ${DEV_ROOT}/db;
./scripts/create_mount_directories.sh /dev_parent ${HACK_DEV_ROOT_PARENT} ${DEV_ROOT}/data;
./scripts/create_mount_directories.sh /dev_parent ${HACK_DEV_ROOT_PARENT} ${DEV_ROOT}/workspace;
"
environment:
- HACK_DEV_ROOT_PARENT=${HACK_DEV_ROOT_PARENT}
- DEV_ROOT=${DEV_ROOT}
- HACK_LOCAL_ROOT_PARENT=${HACK_LOCAL_ROOT_PARENT}
- LOCAL_ROOT=${LOCAL_ROOT}
volumes:
- ${HACK_DEV_ROOT_PARENT}:/dev_parent
- ${HACK_LOCAL_ROOT_PARENT}:/local_parent
db:
ports:
- 5432:5432
volumes:
- ${DEV_ROOT}/db:/var/lib/postgresql/data
seed:
command: /bin/sh -c "./scripts/copy_seed_data.sh"
volumes:
- ${DEV_ROOT}/data:/seed
scheduler:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DEV_ROOT}/workspace:${WORKSPACE_ROOT}
- ${DEV_ROOT}/data:${CONFIG_ROOT}
- ${LOCAL_ROOT}:${LOCAL_DOCKER_MOUNT}
server:
volumes:
- ${DEV_ROOT}/workspace:${WORKSPACE_ROOT}
- ${DEV_ROOT}/data:${CONFIG_ROOT}
webapp:
volumes:
# needed so that we do not try to use the mount name to create the volume like we do in prod.
workspace: