-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.75 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
# Accessing the INN server:
# Internally (from other containers like the FastAPI containers):
# * Use nntp-server:119
# Externally (from your host):
# * Use localhost:119
# host.docker.internal would be used if the INN server was running on your localhost machine.
services:
nntp-server:
hostname: nntp-server
# TODO: the network name in /etc/news/inn.conf should be
# different. Should come from .env file.
build:
context: ./server_config/news_server
dockerfile: Dockerfile
networks:
my_network:
ipv4_address: 172.21.0.2
ports:
- 119:119
post_start:
- command: sh -c "/usr/local/bin/wait_for_tcp.sh 119 20 && /usr/local/bin/preseed.sh"
fastapi-server:
image: fastapi
hostname: fastapi-server
volumes:
- ./server:/app/server:rw
- ./static:/app/static:rw
- ./templates:/app/templates:rw
build:
dockerfile: Dockerfile
environment:
CMS_PLUGIN: server.plugins.qubes.plugin.QubesPlugin
INN_SERVER_NAME: nntp-server
# TODO: need to add the username/password that the NNTP server
# now needs via .env or some such
SERVER_PORT: 5001
networks:
my_network:
ipv4_address: 172.21.0.3
ports:
- 5001:5001
depends_on:
- nntp-server
imls-react:
image: imlsreact
build:
dockerfile: Dockerfile-fe
environment:
NODE_ENV: development
REACT_APP_API_URL: 'http://fastapi-server:5001'
networks:
my_network:
ipv4_address: 172.21.0.4
ports:
- 4000:80
depends_on:
- fastapi-server
networks:
my_network:
driver: bridge
ipam:
config:
- subnet: 172.21.0.0/24
gateway: 172.21.0.1 # This is crucial for the nntp config to work.