-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (47 loc) · 968 Bytes
/
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
version: '3'
services:
nginx:
build: ./nginx
ports:
- "80:80"
depends_on:
- backend
- frontend
networks:
- app_nsp_network
backend:
build:
context: ./backend
ports:
- "1337:1337"
environment:
COMPOSE_HTTP_TIMEOUT: 300
DATABASE_CLIENT: sqlite
DATABASE_NAME: strapi
DATABASE_FILENAME: /tmp/data.db
DATABASE_HOST: 0.0.0.0
DATABASE_PORT: 1337
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: strapi
volumes:
- ./data:/tmp # map local data directory to container
restart: always
networks:
- app_nsp_network
frontend:
build:
context: ./frontend
ports:
- 3000:3000
- 24678:24678
restart: always
networks:
- app_nsp_network
depends_on:
- backend
environment:
COMPOSE_HTTP_TIMEOUT: 300
API_URL: http://backend:1337/api
networks:
app_nsp_network:
driver: bridge