forked from AdrienHeisch/ft_transcendence
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
101 lines (98 loc) · 1.8 KB
/
compose.dev.yml
File metadata and controls
101 lines (98 loc) · 1.8 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: ft-transcendence
version: "3"
services:
rproxy:
image: caddy:2.11
restart: always
networks:
- www
- ws
- storage
ports:
- "8000:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
env_file: .env
www:
image: oven/bun:1.3.5-debian
working_dir: /app
command: sh -c "bun ci && bun sv:prepare && ./container-entrypoint.sh bun dev"
restart: always
depends_on:
- db
- storage
networks:
- www
- db
- storage
volumes:
- ./www:/app
env_file: .env
drizzle:
image: oven/bun:1.3.5-debian
working_dir: /app
command: bun db:studio --host=0.0.0.0
restart: always
depends_on:
- db
- www
networks:
- db
volumes:
- ./www:/app
env_file: .env
ports:
- "4983:4983"
ws:
image: oven/bun:1.3.5-debian
working_dir: /app
command: bun run:ws
restart: always
depends_on:
- db
networks:
- ws
- db
volumes:
- ./www:/app
env_file: .env
db:
image: postgres:18
restart: always
networks:
- db
ports:
- 5432:5432
env_file: .env
volumes:
- db-data:/var/lib/postgresql
storage:
image: ft-transcendence_garage
build:
context: .
dockerfile: ./garage/Containerfile
restart: always
networks:
- storage
ports:
- 3900:3900
- 3902:3902
volumes:
- ./garage/config.toml:/etc/garage.toml:ro
- ./garage/container-entrypoint.sh:/bin/entrypoint.sh:ro
- storage-meta:/var/lib/garage/meta
- storage-data:/var/lib/garage/data
env_file: .env
volumes:
db-data:
storage-meta:
storage-data:
networks:
www:
driver: bridge
ws:
driver: bridge
db:
driver: bridge
storage:
driver: bridge