-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 867 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 867 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
43
44
45
46
version: '3.8'
services:
api:
image: webofmars/todos-api:latest
platform: linux/amd64
build:
context: ./api
dockerfile: Dockerfile
container_name: todo-api
environment:
DB_PATH: /root/data/todos.db
PORT: 8080
ports:
- "8080:8080"
volumes:
- api_data:/root/data
networks:
- todo-network
restart: unless-stopped
frontend:
image: webofmars/todos-front:latest
platform: linux/amd64
build:
context: ./frontend
dockerfile: Dockerfile
container_name: todo-frontend
environment:
REACT_APP_API_URL: http://localhost:8080/api
API_HOST: api
API_PORT: 8080
ports:
- "3000:80"
depends_on:
- api
networks:
- todo-network
restart: unless-stopped
volumes:
api_data:
networks:
todo-network:
driver: bridge