-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 712 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (32 loc) · 712 Bytes
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
version: "3.7"
services:
postgres:
image: postgres:13-alpine
environment:
POSTGRES_DB: pypixels
POSTGRES_PASSWORD: pypixels
POSTGRES_USER: pypixels
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./postgres:/scripts
ports:
- "127.0.0.1:5000:5432"
redis:
image: redis:latest
pixels:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/pixels:ro
tty: true
depends_on:
- postgres
- redis
env_file:
- .env
ports:
- "127.0.0.1:8000:80"
environment:
DATABASE_URL: postgres://pypixels:pypixels@postgres:5432/pypixels
REDIS_URL: redis://redis:6379