-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
54 lines (53 loc) · 1.25 KB
/
docker-compose.yaml
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
50
51
52
53
54
volumes:
postgres-data:
external: true
pg-admin:
external: true
services:
pg-admin:
image: dpage/pgadmin4
volumes:
- pg-admin:/var/lib/pgadmin
ports:
- 8082:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_DISABLE_POSTFIX: 1
postgres:
image: postgres:14.5-bullseye
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: secret
POSTGRES_USER: example_user
POSTGRES_DB: postgres-data
ports:
- 15432:5432
fastapi:
environment:
DATABASE_URL: postgresql://example_user:secret@thrive-together-postgres-1/postgres-data
CORS_HOST: http://localhost:3000
SIGNING_KEY: ${SIGNING_KEY}
PYTHONDONTWRITEBYTECODE: 1
build:
context: api
dockerfile: Dockerfile.dev
ports:
- 8000:8000
volumes:
- ./api:/app
ghi:
image: node:lts-bullseye
command: /bin/bash run.sh
working_dir: /app
volumes:
- ./ghi:/app
ports:
- "3000:3000"
environment:
HOST_OS: ${OS}
NODE_ENV: development
HOST: "0.0.0.0"
PUBLIC_URL: http://localhost:3000
REACT_APP_API_HOST: ${REACT_APP_API_HOST}