-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.18 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
frontend:
labels:
shipyard.route: '/'
build: 'frontend'
volumes:
- './frontend/src:/srv/src'
ports:
- '8080:8080'
backend:
labels:
shipyard.before: 'npx sequelize db:migrate'
shipyard.route: '/graphql'
build: 'backend'
command: yarn start
volumes:
- ./backend/src/:/app/src/
- ./backend/migrations/:/app/migrations/
environment:
- PORT=3000
- DATABASE=wishlist
- DATABASE_USER=wishlist
- DATABASE_PASSWORD=wishlist
- DATABASE_HOST=postgres
- NODE_ENV=development
- GCP_ASTORIATECH_CREDS=${GCP_ASTORIATECH_CREDS}
ports:
- '8081:3000'
depends_on:
- postgres
postgres:
image: 'postgres:9.6-alpine'
environment:
POSTGRES_DB: 'wishlist'
POSTGRES_USER: 'wishlist'
POSTGRES_PASSWORD: 'wishlist'
PGDATA: '/var/lib/postgresql/data/pgdata'
volumes:
- 'postgres:/var/lib/postgresql/data'
ports:
- '5432'
pgadmin:
image: dpage/pgadmin4
ports:
- 5433:80
environment:
- PGADMIN_DEFAULT_PASSWORD=password
volumes:
postgres: