forked from watchdogpolska/small_eod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (62 loc) · 1.66 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
58
59
60
61
62
63
64
65
66
67
version: '3.4'
services:
db:
# https://hub.docker.com/_/postgres
image: postgres:12.4-alpine@sha256:4c493832e4865189e3cab86281a1706a074ea6796b525a7f191b3f48546c25a8
expose:
- "5432"
volumes:
- ./backend-project/contrib/docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
# /var/lib/postgresql/data
environment:
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'pass'
backend:
build:
context: ./backend-project
target: dev
depends_on:
- db
volumes:
- ./backend-project:/code
- static:/code/static
- media:/code/media
environment:
DATABASE_URL: postgres://user:pass@db:5432/small_eod
MINIO_ACCESS_KEY: test
MINIO_SECRET_KEY: test8chars
MINIO_URL: http://minio:9000
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY: "x-x.apps.googleusercontent.com"
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET: "x-puMp99EjG7"
# SECRET_KEY
# DJANGO_ALLOWED_HOSTS
expose:
- "8000"
frontend:
build:
context: ./frontend-project
environment:
COMMIT_SHA: '${COMMIT_SHA:-unknown_sha}'
COMMIT_BRANCH: '${COMMIT_BRANCH:-unknown_branch}'
volumes:
- ./frontend-project:/code
ports:
- "8000:8000"
expose:
- "8000"
minio:
# https://hub.docker.com/r/minio/minio/
image: minio/minio:RELEASE.2020-01-16T22-40-29Z@sha256:6ea470e8fa46b4f86230bd44fc6b7f1dd4f7ca04c5d710f98cdfeff7622a55d2
ports:
- "9000:9000"
expose:
- 9000
command: server /data
volumes:
- ./dev-data/minio:/data
environment:
MINIO_ACCESS_KEY: test
MINIO_SECRET_KEY: test8chars
volumes:
static:
media: