forked from Coderockr/vitrine-social
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (49 loc) · 1.24 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
version: "3"
volumes:
gopath:
services:
postgres:
image: postgres:9-alpine
volumes:
- ./:/vitrine
- ./.data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=vitrine
golang:
image: golang:1.11
volumes:
- ./:/vitrine-social
- ${GOPATH:-gopath}:/go
ports:
- "8000:8000"
environment:
API_PORT: 8000
DATABASE_HOST: postgres
VITRINESOCIAL_ENV: ${VITRINESOCIAL_ENV:-dev}
STORAGE_S3_ENDPOINT: http://minio:9000
command: sh -c "while true; do echo 'beep'; sleep 5; done"
working_dir: /vitrine-social
links:
- postgres
minio:
image: minio/minio:RELEASE.2018-10-18T00-28-58Z
environment:
MINIO_ACCESS_KEY: configAccessKeyId
MINIO_SECRET_KEY: configSecretKey
volumes:
- "./.data/minio:/data"
- "./.data/minio-config:/root/.minio"
ports:
- "9000:9000"
entrypoint: sh
command: -c 'mkdir -p /data/images.vitrinesocial.test /data/vitrinesocial.test && /usr/bin/minio server /data'
images-server:
image: halverneus/static-file-server:latest
volumes:
- "./.data/minio/images.vitrinesocial.test:/web"
ports:
- 7000:8080
depends_on:
- minio