-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 1008 Bytes
/
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
version: '3'
services:
server:
build:
context: .
dockerfile: Dockerfile
depends_on:
- postgres
- redis
ports:
- "8080:8080"
image: reducto:latest
volumes:
# - .:/go/src/reducto
- go_modules:/go/pkg/mod
environment:
REDUCTO_CONFIG_PATH: './docker-config.yml.sample'
command: ["./wait-for", "postgres:5432", "--", "./server"]
keygen:
build:
context: .
dockerfile: Dockerfile
depends_on:
- postgres
- redis
image: reducto:latest
volumes:
- go_modules:/go/pkg/mod
environment:
REDUCTO_CONFIG_PATH: './docker-config.yml.sample'
command: ["./wait-for", "postgres:5432", "--", "./keygen"]
postgres:
image: postgres:alpine
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: reducto
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis:latest
volumes:
db_data:
go_modules: