-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 920 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 920 Bytes
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
version: "2"
services:
api:
image: tryretool/backend:latest
env_file: ./docker.env
environment:
- COOKIE_INSECURE=true # Disables secure cookies
- APPS_FS_SYNC_ON=true # Enables syncing to filesystem
- APPS_FS_SYNC_PROTECTED_BRANCHES=master # Protects the master branch
networks:
- retool-network
depends_on:
- postgres
command: bash -c "chmod -R +x ./docker_scripts; sync; ./docker_scripts/wait-for-it.sh postgres:5432; ./docker_scripts/start_api.sh"
links:
- postgres
ports:
- "3000:3000"
volumes:
- .:/usr/local/retool-git-repo # <- Change '.' to '/myother/gitrepo' to store the retool apps in a different repo
postgres:
image: "postgres:9.6.5"
env_file: docker.env
networks:
- retool-network
volumes:
- retool-pg-data:/var/lib/postgresql/data
networks:
retool-network:
volumes:
retool-pg-data: