-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 950 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 950 Bytes
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
version: '3.8'
services:
app:
build: .
container_name: gamblecodez-app
ports:
- "3000:3000"
environment:
NODE_ENV: production
env_file:
- .env
depends_on:
- postgres
restart: unless-stopped
postgres:
image: postgres:15
container_name: gamblecodez-db
environment:
POSTGRES_DB: gamblecodez
POSTGRES_USER: gamblecodez_user
POSTGRES_PASSWORD: secure_password_change_me
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
restart: unless-stopped
nginx:
image: nginx:alpine
container_name: gamblecodez-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./ssl:/etc/nginx/ssl:ro # Certificates here
depends_on:
- app
restart: unless-stopped
volumes:
postgres_data: