-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.02 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
version: "3"
services:
app:
container_name: "hackclub_backend"
build:
# Change only if your UID or GID != 1000
#args:
# UID: 2000
# GID: 2000
context: .
env_file:
- "development.env"
- "email.env"
- "cloudinary.env"
volumes:
- "./app:/src/app"
- "./alembic:/src/alembic"
ports:
- "8000:80"
depends_on:
- db
db:
container_name: "hackclub-db"
image: postgres:13-alpine
environment:
POSTGRES_USER: "user"
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'hackclubdb'
volumes:
- "./db-data:/var/lib/postgresql"
test-db:
container_name: "test-db"
image: postgres:13-alpine
environment:
POSTGRES_USER: "user"
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'hackclubtestdb'
pg-admin:
container_name: "pg-admin-hackclub"
image: dpage/pgadmin4
ports:
- "9000:80"
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "password"