-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
43 lines (42 loc) · 954 Bytes
/
docker-compose.dev.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
version: "3.9"
services:
db:
image: postgres:15.1-bullseye
secrets:
- postgres-password
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-password
- POSTGRES_DB=corporate-emissions
- PGDATA=/var/lib/postgresql/data/emissionspgdata
ports:
- "5432:5432"
volumes:
- "./pgdata:/var/lib/postgresql/data"
server:
depends_on:
- db
build:
context: ./server
target: development
secrets:
- postgres-password
environment:
- EMISSIONS_DB_PASSWORD_FILE=/run/secrets/postgres-password
volumes:
- "./server/api:/server/api"
- "./server/db:/server/db"
ports:
- "5000:5000"
client:
depends_on:
- server
build:
context: ./client
target: development
ports:
- "3000:3000"
volumes:
- "./client/src:/client/src"
secrets:
postgres-password:
file: ./.secrets/postgres_password.txt