generated from romainyvernes/es6-express-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 1.05 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
version: '3'
services:
app:
image: film-nexus
ports:
- '5000:5000'
depends_on:
- db
- redis
environment:
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
AWS_BUCKET: ${AWS_BUCKET}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_REGION: ${AWS_REGION}
FACEBOOK_APP_ID: ${FACEBOOK_APP_ID}
FACEBOOK_APP_SECRET: ${FACEBOOK_APP_SECRET}
FACEBOOK_REDIRECT_PATH: ${FACEBOOK_REDIRECT_PATH}
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES-PW: ${POSTGRES-PW}
POSTGRES_USER: ${POSTGRES_USER}
REDIS_HOST: ${REDIS_HOST}
REDIS_PW: ${REDIS_PW}
SITE_ROOT_URL: ${SITE_ROOT_URL}
db:
image: postgres:15.3-alpine
environment:
POSTGRES_DB: filmnexus
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ./data:/var/lib/postgresql/data
- ./server/database.sql:/docker-entrypoint-initdb.d/database.sql
ports:
- '5432:5432'
depends_on:
- redis
redis:
image: 'redis:7-alpine'
ports:
- '6379:6379'