-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
85 lines (80 loc) · 1.83 KB
/
docker-compose.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
services:
serverbee-web:
container_name: serverbee-web
image: zingerbee/serverbee-web
volumes:
- /proc:/proc
network_mode: host
restart: always
privileged: true
postgres:
container_name: postgres
image: postgres
env_file: ./.env
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=outposts
- POSTGRES_DB=postgres
restart: always
volumes:
- ./postgres/data:/var/lib/postgresql/data
- ./postgres/init.sh:/docker-entrypoint-initdb.d/init.sh
ports:
- 9005:5432
networks:
- outposts
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}']
interval: 5s
timeout: 5s
retries: 10
logto:
container_name: logto
depends_on:
postgres:
condition: service_healthy
image: svhd/logto:latest
entrypoint: ['sh', '-c', 'npm run cli db alteration deploy latest && npm run cli db seed -- --swe && npm start']
ports:
- 9001:3001
- 9002:3002
env_file: ./.env
environment:
- TRUST_PROXY_HEADER=1
- DB_URL=${LOGTO_DATABASE_URL}
- ENDPOINT=${AUTH_ENDPOINT}
- ADMIN_ENDPOINT=${AUTH_DASHBOARD_ENDPOINT}
networks:
- outposts
confluence:
container_name: confluence
build:
context: .
dockerfile: ./crates/confluence/Dockerfile
env_file: ./.env
restart: always
ports:
- 9003:4001
networks:
- outposts
depends_on:
- postgres
- logto
outposts-web:
container_name: outposts-web
build:
context: .
dockerfile: ./apps/outposts-web/Dockerfile
env_file: ./.env
restart: always
ports:
- 9004:80
networks:
- outposts
depends_on:
- confluence
- logto
networks:
outposts:
name: outposts
driver: bridge