-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.36 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
services:
web:
image: gw2treasures/web
build:
context: .
dockerfile: apps/web/Dockerfile
restart: unless-stopped
environment:
- DATABASE_URL=postgresql://gw2treasures:gw2treasures@database:5432/gw2treasures?schema=public
- GW2T_NEXT_DOMAIN=gw2treasures.localhost
- HTTPS=0
- FORCE_COLOR=1
ports:
- 3000:3000
worker:
image: gw2treasures/worker
build:
context: .
dockerfile: apps/worker/Dockerfile
restart: unless-stopped
depends_on:
- database
- database-migration
environment:
- DATABASE_URL=postgresql://gw2treasures:gw2treasures@database:5432/gw2treasures?schema=public
deploy:
replicas: 2
database:
image: timescale/timescaledb:2.18.0-pg17
restart: unless-stopped
environment:
- POSTGRES_USER=gw2treasures
- POSTGRES_PASSWORD=gw2treasures
- POSTGRES_DB=gw2treasures
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- .docker/database-pg17:/var/lib/postgresql/data
ports:
- 54326:5432
database-migration:
image: gw2treasures/database-migration
build:
context: .
dockerfile: apps/database-migration/Dockerfile
restart: on-failure
depends_on:
- database
environment:
- DATABASE_URL=postgresql://gw2treasures:gw2treasures@database:5432/gw2treasures?schema=public