-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (51 loc) · 1.18 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
services:
# Postgres
db:
image: postgres:12
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./docker/db/data/:/var/lib/postgresql/data:delegated
# Redis
redis:
restart: always
image: redis:5.0
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- "6379:6379"
volumes:
- ./docker/redis:/var/lib/redis:delegated
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
# Application
web:
build:
context: ./app
cache_from:
- ghcr.io/hactar-is/openownership:latest
dockerfile: ../docker/web/Dockerfile
args:
- SERVER_ENV=development
- ENVKEY=${ENVKEY}
image: ghcr.io/hactar-is/openownership:latest
environment:
- SERVER_ENV=development
- ENVKEY=${ENVKEY}
- INDOCKER=1
restart: always
volumes:
- ./app/:/usr/srv/app:cached
- ./app/media:/usr/srv/app/media:delegated
ports:
- "8000:8000"
- "5000:5000"
links:
- db
- redis
depends_on:
- db
- redis
command: sleep 1000000