-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.32 KB
/
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
version: '3'
services:
web:
image: ghcr.io/gw2treasures/gw2.me/web:${IMAGE_VERSION:-latest}
build:
context: .
dockerfile: apps/web/Dockerfile
restart: unless-stopped
environment:
- DATABASE_URL=postgresql://gw2me:gw2me@database:5432/gw2me?schema=public
- BASE_DOMAIN=localhost
- FORCE_COLOR=1
- JWT_SECRET=gw2.me-secret
ports:
- 4000:3000
demo:
image: ghcr.io/gw2treasures/gw2.me/demo:${IMAGE_VERSION:-latest}
build:
context: .
dockerfile: apps/demo/Dockerfile
restart: unless-stopped
environment:
- FORCE_COLOR=1
- GW2ME_URL=http://localhost:4000
ports:
- 4001:3000
database:
image: postgres:16.4-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=gw2me
- POSTGRES_PASSWORD=gw2me
- POSTGRES_DB=gw2me
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- .docker/database-pg16:/var/lib/postgresql/data
ports:
- 54327:5432
database-migration:
image: ghcr.io/gw2treasures/gw2.me/database-migration:${IMAGE_VERSION:-latest}
build:
context: .
dockerfile: apps/database-migration/Dockerfile
restart: on-failure
depends_on:
- database
environment:
- DATABASE_URL=postgresql://gw2me:gw2me@database:5432/gw2me?schema=public