-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
56 lines (56 loc) · 1.57 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
55
56
volumes:
firsts-postgres:
external: true
pg-admin:
external: true
services:
postgres:
image: postgres:14.5-bullseye
volumes:
- firsts-postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER_FROM_ENV}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD_FROM_ENV}
POSTGRES_DB: ${POSTGRES_DATABASE_NAME}
ports:
- "15432:5432"
pg-admin:
container_name: pgadmin
image: dpage/pgadmin4:latest
volumes:
- pg-admin:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL_FROM_ENV}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD_FROM_ENV}
PGADMIN_DISABLE_POSTFIX: 1
ports:
- "8082:80"
restart: always
fastapi:
environment:
CORS_HOST: ${CORS_HOST}
SIGNING_KEY: ${SIGNING_KEY}
HASHING_ALGO: ${HASHING_ALGO}
WAIT_HOSTS: postgres:5432
WAIT_HOSTS_BEFORE: 5
WAIT_TIMEOUT: 240
DATABASE_URL: ${DB_URL}
build:
context: api
dockerfile: Dockerfile.dev
ports:
- 8000:8000
volumes:
- ./api:/app
depends_on:
- postgres
web-ghi:
image: node:lts-bullseye
command: /bin/bash run.sh
working_dir: /app
volumes:
- ./clients/web:/app
ports:
- "5173:5173"
environment:
VITE_API_HOST: $VITE_API_HOST