-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
42 lines (38 loc) · 927 Bytes
/
docker-compose.yml.example
File metadata and controls
42 lines (38 loc) · 927 Bytes
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
services:
web:
image: hr_web:0.2 # Change tag if needed
container_name: hr_web
restart: unless-stopped
networks:
- public
- internal
ports:
- "5000:5000"
environment:
- PYTHONUNBUFFERED=1
- API_SERVER=hr_api # Must have same name as container_name for API
- CONFIGFILE=/config.ini
volumes:
- "/home/user/git/helloredis/frontend/config.ini:/config.ini" # Change to correct path
api:
image: hr_api:0.2 # Change tag if needed
container_name: hr_api
restart: unless-stopped
networks:
- internal
expose:
- "80"
environment:
- PYTHONUNBUFFERED=1
- REDIS_SERVER=redis # Must have same name as container_name for Redis
redis:
image: redis:7
container_name: redis
expose:
- "6379"
command: redis-server --appendonly yes
networks:
- internal
networks:
public:
internal: