forked from mozilla/code-review
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (34 loc) · 797 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (34 loc) · 797 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
36
37
38
39
40
41
42
---
services:
backend:
container_name: code-review-backend
build:
dockerfile: ./backend/Dockerfile
context: .
environment:
DATABASE_URL: psql://devuser:devdata@db/code_review_dev
# Setup environment like on Heroku
DYNO: 1
HOST: 0.0.0.0
PORT: 80
SECRET_KEY: randomSecretKey123
# Special marker to skip SSL for Postgres
DATABASE_NO_SSL: 1
ports:
- 127.0.0.1:8000:80
depends_on:
- db
db:
container_name: code-review-db
image: postgres:16-alpine
ports:
- 127.0.0.1:5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: devuser
POSTGRES_PASSWORD: devdata
POSTGRES_DB: code_review_dev
volumes:
pgdata:
driver: local