-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose.prod.yaml
52 lines (47 loc) · 1.27 KB
/
compose.prod.yaml
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:
app:
image: dudes-build
command: sh -c "pnpm run db:migrate:deploy && node dist/apps/backend-api/main.js"
container_name: dudes-app
working_dir: /usr/src/dudes
environment:
- HOST_URL=${HOST_URL}
- ADMIN_URL=${ADMIN_URL}
- CLIENT_URL=${CLIENT_URL}
- TWITCH_CLIENT_ID=${TWITCH_CLIENT_ID}
- TWITCH_CLIENT_SECRET=${TWITCH_CLIENT_SECRET}
- TWITCH_CALLBACK_URL=${TWITCH_CALLBACK_URL}
- SESSION_SECRET=${SESSION_SECRET}
- DATABASE_URL=${DATABASE_URL}
user: $DOCKER_USER
website:
image: dudes-build
command: sh -c "cd apps/website && npx remix-serve build/index.js"
environment:
- PORT=${REMIX_PORT}
container_name: dudes-website
working_dir: /usr/src/dudes
user: $DOCKER_USER
postgres:
image: postgres:15-alpine
container_name: dudes-postgres
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=dudes
- POSTGRES_USER=dudes
- POSTGRES_DB=dudes
nginx:
image: nginx:alpine
container_name: dudes-nginx
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
restart: always
volumes:
postgres-data:
networks:
default:
external: true
name: scoobydoo