-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
55 lines (48 loc) · 1.01 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
services:
db:
image: postgres:11
environment:
POSTGRES_USER: suggestit
POSTGRES_DB: suggestit
POSTGRES_PASSWORD: password
ports:
- 5432:5432
adminer:
image: adminer
depends_on:
- db
ports:
- 8080:8080
backend:
build:
context: ./backend/
dockerfile: dev.Dockerfile
environment:
SUGGESTIT_POSTGRES_USER: suggestit
SUGGESTIT_POSTGRES_PASSWORD: password
SUGGESTIT_POSTGRES_HOST: db
SUGGESTIT_POSTGRES_PORT: 5432
SUGGESTIT_POSTGRES_DB: suggestit
OAUTH_CLIENT_SECRET:
OAUTH_CLIENT_ID:
OAUTH_URL:
CALLBACK_URL: http://localhost:3001/callback
COOKIE_DOMAIN: localhost
volumes:
- ./backend/:/go/src/app
depends_on:
- db
ports:
- 5000:3000
frontend:
build:
context: ./frontend/
dockerfile: dev.Dockerfile
ports:
- 3001:3000
depends_on:
- backend
volumes:
- ./frontend/src:/usr/src
redis:
image: redis:5.0