-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
49 lines (46 loc) · 1.06 KB
/
Copy pathcompose.yaml
File metadata and controls
49 lines (46 loc) · 1.06 KB
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
services:
ratts-webapp:
image: gameinstance.com/ratts
build:
context: ./
dockerfile: Dockerfile
container_name: ratts-webapp
restart: unless-stopped
hostname: ratts-webapp
ports:
- "3000:3000"
networks:
- backend
env_file:
- .env
environment:
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@ratts-db/${POSTGRES_DB}"
depends_on:
- ratts-db
ratts-db:
image: postgres:16.0
container_name: ratts-db
restart: unless-stopped
hostname: ratts-db
env_file:
- .env
volumes:
- ./db/data:/var/lib/postgresql/data
- ./backend/migration:/docker-entrypoint-initdb.d
networks:
- backend
# command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
ratts-smtp:
image: dockage/mailcatcher:0.9.0
container_name: ratts-smtp
restart: unless-stopped
hostname: ratts-smtp
ports:
- "1080:1080"
- "1025:1025"
networks:
- backend
depends_on:
- ratts-webapp
networks:
backend: