-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
139 lines (131 loc) · 2.81 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
139 lines (131 loc) · 2.81 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
services:
db:
image: postgres:18-alpine
container_name: foundrydb
environment:
POSTGRES_HOST: 'db'
env_file:
- ./.env.docker
ports:
- '5433:5432'
volumes:
- postgres_data:/var/lib/postgresql
restart: on-failure
networks:
- foundry
redis:
container_name: foundrycache
image: redis
ports:
- '127.0.0.1:6379:6379/tcp'
volumes:
- redis:/data
networks:
- foundry
restart: on-failure
redis-insight:
container_name: foundryredisinsight
image: redis/redisinsight:latest
ports:
- '127.0.0.1:5540:5540'
networks:
- foundry
depends_on:
- redis
volumes:
- redis-insight:/data
restart: on-failure
mailpit:
image: docker.io/axllent/mailpit:latest
container_name: foundry-mailpit
ports:
- '1025:1025'
- '8025:8025'
environment:
- MP_SMTP_AUTH_ACCEPT_ANY=1
- MP_SMTP_AUTH_ALLOW_INSECURE=1
volumes:
- mailpit-data:/data
networks:
- foundry
foundryapi:
container_name: foundrydb-api
build:
context: .
dockerfile: Dockerfile.api.local
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: 'true'
WATCHPACK_POLLING: 'true'
REDIS_HOST: foundrycache
SMTP_HOST: mailpit
SMTP_PORT: 1025
env_file:
- ./.env.docker
ports:
- '3000:3000'
volumes:
- .:/foundry
- /foundry/node_modules
# .nx holds nx's running-task registry (PID-keyed); sharing it with the
# host or across restarts makes nx wait on phantom "other" processes.
# bane of existence
tmpfs:
- /foundry/.nx
depends_on:
db:
condition: service_started
redis:
condition: service_started
restart: on-failure
networks:
- foundry
foundryclient:
container_name: foundry-client
build:
context: .
dockerfile: Dockerfile.client.local
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: 'true'
ports:
- '4200:4200'
volumes:
- .:/foundry
- /foundry/node_modules
tmpfs:
- /foundry/.nx
depends_on:
foundryapi:
condition: service_started
restart: on-failure
networks:
- foundry
studio:
container_name: foundry-studio
build:
context: .
dockerfile: Dockerfile.api.local
command: sh -c "npx prisma studio --config=apps/api/prisma.config.ts --port 5555 --browser none"
env_file:
- ./.env.docker
ports:
- '5555:5555'
volumes:
- .:/foundry
- /foundry/node_modules
depends_on:
db:
condition: service_started
profiles:
- tools
networks:
- foundry
volumes:
postgres_data:
redis:
redis-insight:
mailpit-data:
networks:
foundry:
name: foundry