generated from MiniHacks/geese
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (68 loc) · 1.17 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
65
66
67
68
69
version: "3"
services:
caddy:
container_name: caddy
image: caddy:2.4.6
restart: unless-stopped
# network_mode: "host"
ports:
- "3000:80"
- "3001:443"
volumes:
- $PWD/infra/Caddyfile:/etc/caddy/Caddyfile
- $PWD/shared:/srv
- caddy_data:/data
- caddy_config:/config
networks:
- internal
mongodb:
image: mongo
container_name: mongodb
volumes:
- mongodata:/data/db
ports:
- "27017:27017"
networks:
- internal
nextjs:
container_name: nextjs
depends_on:
- mongodb
# network_mode: "host"
# ports:
# - "3000:3000"
build: nextjs
volumes:
- "./shared:/shared"
env_file:
- .env
networks:
- internal
# express:
# ports:
# - "3001:3001"
# build: express
# environment:
# - "PORT=3001"
# pyth:
# build: python
# ports:
# - "3002:3002"
# environment:
# - "PORT=3002"
#
python_backend:
build: "python"
environment:
- PORT=8000
expose:
- 8000
ports:
- "8000:8000"
volumes:
mongodata:
caddy_data:
caddy_config:
networks:
internal:
name: "geese-internals"