You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
770 B

version: '3'
services:
db:
image: postgres:10.3-alpine
restart: always
ports:
- "5432:5432"
env_file:
- .env
volumes:
- ./data/postgres:/var/lib/postgresql/data
logging: &logging
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
redis:
image: redis:4.0.9-alpine
restart: always
ports:
- "127.0.0.1:6379:6379"
volumes:
- ./data/redis:/data
logging: *logging
app:
build:
context: ../
dockerfile: docker/Dockerfile
restart: always
env_file:
- .env
volumes:
- ./data/media:/app/media
ports:
- "${PORT}:80"
depends_on:
- db
- redis
links:
- db
- redis
logging: *logging