-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.08 KB
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
services:
postgres:
image: postgres:16-alpine
container_name: wmg-postgres
environment:
- POSTGRES_DB=worldmodel_gym
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
server:
build:
context: .
dockerfile: docker/server.Dockerfile
container_name: wmg-server
environment:
- WMG_UPLOAD_TOKEN=dev-token
- WMG_DB_URL=postgresql+psycopg://postgres:postgres@postgres:5432/worldmodel_gym
- WMG_AUTO_MIGRATE=true
- WMG_STORAGE_DIR=/app/server/storage
- WMG_ENABLE_METRICS=true
volumes:
- ./server/storage:/app/server/storage
- ./runs:/app/runs
depends_on:
- postgres
ports:
- "8000:8000"
web:
build:
context: .
dockerfile: docker/web.Dockerfile
container_name: wmg-web
environment:
- NEXT_PUBLIC_API_BASE=http://localhost:8000
- INTERNAL_API_BASE=http://server:8000
depends_on:
- server
ports:
- "3000:3000"
volumes:
postgres-data: