-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.1 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
version: '3'
services:
frontend:
image: node:8
working_dir: /app
expose:
- 80
volumes:
- ./frontend:/app
environment:
- FORCE_COLOR=1
ports:
- 3000:80
command: bash -c 'yarn --frozen-lockfile && yarn start; sleep infinity'
postgres:
image: postgres:$POSTGRES_VERSION # Comes from .env
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
backend: &backend
build:
context: ./backend
dockerfile: Dockerfile-dev
volumes:
- ./backend:/go/src/app
depends_on: # `links` originally, isn't passed by `extends`, just in case
- postgres
environment:
- STATIC_HOST=localhost:3000
- FORCE_COLOR=1
- POSTGRES_URL=$POSTGRES_URL
ports:
- 3001:80
command: bash -c 'yarn --frozen-lockfile && gulp; sleep infinity'
worker:
<<: *backend
ports: []
command: bash -c 'yarn --frozen-lockfile && gulp worker; sleep infinity'
pgweb:
image: sosedoff/pgweb
depends_on:
- postgres
environment:
- DATABASE_URL=$POSTGRES_URL
ports:
- 3002:8081
restart: unless-stopped