-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (64 loc) · 1.66 KB
/
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
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
63
64
version: "3.9"
services:
redis:
container_name: rediscrashcourse
image: "redis/redis-stack"
ports:
- 6379:6379
volumes:
- ./redisdata:/data
deploy:
replicas: 1
restart_policy:
condition: on-failure
node:
container_name: node_rediscrashcourse
build: .
volumes:
- .:/app
- /app/node_modules
command: sh -c "npm run load all && npm run dev"
depends_on:
- redis
ports:
- 8081:8081
environment:
- CRASH_COURSE_CONFIG_FILE=config_docker.json
postgres:
container_name: postgrescrashcourse
image: "postgres:latest"
ports:
- 5432:5432
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: mydatabase
volumes:
- postgres_data:/var/lib/postgresql/data
deploy:
replicas: 1
restart_policy:
condition: on-failure
sqlpad:
image: sqlpad/sqlpad:6
depends_on:
- postgres
hostname: "sqlpad"
ports:
- "3000:3000"
environment:
SQLPAD_ADMIN: "[email protected]"
SQLPAD_AUTH_DISABLED_DEFAULT_ROLE: "admin"
SQLPAD_AUTH_DISABLED: "true"
SQLPAD_APP_LOG_LEVEL: debug
SQLPAD_WEB_LOG_LEVEL: warn
SQLPAD_CONNECTIONS__psql__name: psql_conn
SQLPAD_CONNECTIONS__psql__driver: postgres
SQLPAD_CONNECTIONS__psql__host: postgres
SQLPAD_CONNECTIONS__psql__database: mydatabase
SQLPAD_CONNECTIONS__psql__username: myuser
SQLPAD_CONNECTIONS__psql__password: mypassword
SQLPAD_CONNECTIONS__psql__multiStatementTransactionEnabled: "true"
SQLPAD_CONNECTIONS__psql__idleTimeoutSeconds: 86400
volumes:
postgres_data: