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.
 
 
 
 
 
 

34 lines
552 B

version: '3'
services:
db:
image: postgres:10.3-alpine
restart: always
env_file:
- data/.env
volumes:
- ./data/postgres:/var/lib/postgresql/data
redis:
image: redis:4.0.9-alpine
restart: always
ports:
- "127.0.0.1:6379:6379"
volumes:
- ./data/redis:/data
app:
build:
context: ../
dockerfile: docker/Dockerfile
restart: always
env_file:
- data/.env
ports:
- "${PORT}:80"
depends_on:
- db
- redis
links:
- db
- redis