-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-comp-dev.yml
executable file
·52 lines (46 loc) · 1.25 KB
/
docker-comp-dev.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
43
44
45
46
47
48
49
50
51
52
# command to run:
# docker-compose -f docker-comp-dev.yml up
# This will start ethi q-dependencies & postgres db container with it's associated data volumes container
# and run 'npm run dev-server'
version: "3"
services:
redis:
image: redis:latest
container_name: "redis"
ports:
- "6379:6379"
dev:
image: dbsites/ethiq-dependencies
container_name: "ethiq-dev"
ports:
- "3000:3000"
volumes:
- ./:/usr/src/app
- ./node_modules:/usr/src/app/node_modules
depends_on:
- postgres-db
- postgres-data
command: ["./scripts/postgres-db/run-migrate.sh", "postgres-db", "${DATABASE_MIGRATIONS}", "dev-server", "${DATABASE_SCOPES}"]
postgres-db:
environment:
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=ethiqadmin
- POSTGRES_DB=ethiqdb
image: dbsites/ethiq-postgres
container_name: ethiq-postgres
volumes:
- dev-db-volume:/var/lib/postgresql/data
- ./scripts/postgres-db:/postgres-db
depends_on:
- postgres-data
ports:
- "5432:5432"
postgres-data:
image: busybox
container_name: ethiq-dev-dbdata
volumes:
- dev-db-volume:/var/lib/postgresql/data
# shared volumes for development
volumes:
dev-db-volume:
node_modules: