forked from nhsx/nhsx-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 921 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
49
50
51
version: '3.7'
services:
# Postgres
db:
image: postgres:10-alpine
restart: always
env_file:
- docker-compose.env
volumes:
- ./docker/db/data/:/var/lib/postgresql/data
# Redis
redis:
restart: always
image: sameersbn/redis:latest
env_file:
- docker-compose.env
ports:
- "6379:6379"
volumes:
- ./docker/redis:/var/lib/redis
# Application
web:
image: nhsx:latest
environment:
- ENVKEY=${ENVKEY}
env_file:
- docker-compose.env
restart: always
build:
context: ./
target: dev
dockerfile: ./docker/web/Dockerfile
args:
- SERVER_ENV=development
- ENVKEY=${ENVKEY}
volumes:
- ./app/:/usr/srv/app:Z
- ./app/media:/usr/srv/app/media:Z
ports:
- "5000:5000"
- "8000:8000"
links:
- db
- redis
depends_on:
- db
- redis