-
Notifications
You must be signed in to change notification settings - Fork 184
/
docker-compose.yml
58 lines (55 loc) · 1019 Bytes
/
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
50
51
52
53
54
55
56
57
58
version: "3"
services:
pg:
image: postgres:16-alpine
restart: on-failure
environment:
POSTGRES_USER: postgres
POSTGRES_DB: dev
POSTGRES_PASSWORD: password
expose:
- "5432"
ports:
- "7432:5432"
networks:
- net
api:
build:
context: ./server
dockerfile: Dockerfile
image: fredericheem/api:v10.41.0
expose:
- "9000"
ports:
- "9001:9000"
environment:
NODE_CONFIG: |
{
"db": {
"url": "postgres://postgres:password@pg:5432/dev?sslmode=disable"
},
}
links:
- pg
entrypoint: sh scripts/initialise.sh
networks:
- net
ui:
build:
context: ./client
dockerfile: Dockerfile
args:
BUILD_VERSION: "docker compose alpha build"
image: fredericheem/ui:v10.41.0
expose:
- "3000"
ports:
- "3001:3000"
links:
- api
depends_on:
- api
networks:
- net
networks:
net: