-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.test.prod.yml
More file actions
62 lines (57 loc) · 1.58 KB
/
Copy pathdocker-compose.test.prod.yml
File metadata and controls
62 lines (57 loc) · 1.58 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
50
51
52
53
54
55
56
57
58
59
60
61
62
# Docker-compose file to debug production build issues.
# Build the image first:
#
# $ docker build --build-arg ROOT_URL="http://localhost:5678" --tag ilmo-server .
# $ docker tag ilmo-server ilmo-worker
#
# Then run this compose stack with 'docker compose -f docker-compose.test.prod.yml up'
#
# To run migrations on first start, override the server command to:
# pnpm --filter @app/db run migrate
version: "3.8"
services:
server:
image: ilmo-server
container_name: ilmo_server
command: ["pnpm", "--filter", "@app/server", "run", "start"]
ports:
- "5678:5678"
env_file:
- .env.production
depends_on:
- redis
- db
worker:
image: ilmo-worker
container_name: ilmo_worker
command: ["pnpm", "--filter", "@app/worker", "run", "start"]
env_file:
- .env.production
depends_on:
- redis
- server
redis:
image: redis:6-alpine
container_name: ilmo_redis
volumes:
- ilmo-redis:/data
db:
image: debezium/postgres:11
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
env_file:
- .env.production
working_dir: /
volumes:
- ilmo-postgres:/var/lib/postgresql/data
- ./docker/postgres:/docker-entrypoint-initdb.d/
- ./data:/data
restart: unless-stopped
command:
postgres -c logging_collector=on -c log_destination=stderr -c log_directory=/var/lib/postgresql/data/logs -c
log_rotation_age=60 -c log_truncate_on_rotation=on -c log_filename=server_log.hour.%H%M
volumes:
ilmo-redis:
ilmo-postgres: