-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.23 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
53
54
55
56
57
58
59
60
version: "3.1"
services:
db:
container_name: db
image: postgres:15-alpine
restart: unless-stopped
ports:
- 5432:5432
environment:
- POSTGRES_USER=cinesync-dev
- POSTGRES_PASSWORD=@BarelyAnInconvenience@
- POSTGRES_DB=cinesync-dev
- TZ=America/Toronto
volumes:
- ./api/db-data:/var/lib/postgresql/data
api:
container_name: api
build:
context: ./api
environment:
- TZ=America/Toronto
- DATABASE_URL=${DATABASE_URL}
- JWT_SECRET=${JWT_SECRET}
- MAILGUN_KEY=${MAILGUN_KEY}
- MAILGUN_DOMAIN=${MAILGUN_DOMAIN}
- NODE_ENV=${NODE_ENV}
ports:
- 4000:4000
depends_on:
- db
restart: always
web:
container_name: web
build:
context: ./web
environment:
- API_HOST=${API_HOST}
- PUBLIC_API_HOST=${PUBLIC_API_HOST}
- TMDB_TOKEN=${TMDB_TOKEN}
- NODE_ENV=${NODE_ENV}
ports:
- 3000:3000
depends_on:
- api
restart: "unless-stopped"
redis:
image: redis:latest
container_name: redis
restart: always
volumes:
- redis_volume_data:/data
ports:
- 6379:6379
command: redis-server --requirepass docker
volumes:
redis_volume_data: