-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (31 loc) · 1013 Bytes
/
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
# Use postgres/example user/password credentials
version: '3.9'
services:
db:
image: postgres:16-alpine
restart: always
shm_size: 128mb
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: newsletter
ports:
- "5432:5432" # This isnt needed and should be removed to not expose this port without a good reason
#, only here cause to test the db connection from the host machine and running tests fast
redis:
image: redis:7-alpine
ports:
- "6379:6379" # This isnt needed and should be removed to not expose this port without a good reason
#, only here cause to test the redis connection from the host machine and running tests fast
zero2prod:
build: .
restart: unless-stopped
environment:
APP_ENVIRONMENT: "production"
APP_DATABASE__HOST: "db"
APP_DATABASE__SSL_MODE: "prefer"
ports:
- "8000:8000"
depends_on:
- db
- redis