-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
66 lines (60 loc) · 1.33 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
version: '3.4'
volumes:
postgres_data: {}
services:
redis:
container_name: ${REDIS_HOST}
image: redis:4.0
backend:
container_name: backend
image: froggy-service-api
build:
context: ./backend
depends_on:
- postgres
- redis
volumes:
- ./backend:/app
- ./helm/froggy-service/secret:/secret
command: /app/scripts/start.sh
entrypoint: /app/scripts/entrypoint.sh
restart: on-failure
env_file: .env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/readiness"]
interval: 15s
timeout: 5s
retries: 5
start_period: 15s
ports:
- "8000:8000"
frontend:
container_name: frontend
image: node:10-alpine
command: npm run serve
volumes:
- ./.env:/app/.env:ro
- ./frontend:/app
- /app/node_modules
working_dir: /app
restart: on-failure
ports:
- "8080:8080"
postgres:
container_name: postgres
image: postgres:10-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
env_file: .env
proxy:
container_name: proxy
image: nginx:alpine
ports:
- "80:80"
depends_on:
- backend
- frontend
volumes:
- ./backend/media/:/media/
- ./backend/staticfiles/:/staticfiles/
- ./nginx/dev.conf:/etc/nginx/nginx.conf:ro