-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (62 loc) · 1.3 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
version: "3.7"
services:
client:
build:
dockerfile: Dockerfile.dev
context: ./client
restart: always
volumes:
- /app/static
- /app/node_modules
- ./client:/app
container_name: client
stdin_open: true
nginx:
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
container_name: nginx
ports:
- "3000:80"
server:
build:
dockerfile: Dockerfile.dev
context: ./server
container_name: server
volumes:
- /app/static
- /app/node_modules
- ./server:/app
ports:
- "8080:8080"
depends_on:
- mysql
- typesense
env_file: .env
mysql:
image: library/mysql:8.0
container_name: mysql
restart: always
ports:
- 3307:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./mysql-data:/var/lib/mysql
platform: linux/x86_64
env_file: .env
typesense:
image: typesense/typesense:0.25.2
container_name: typesense
restart: on-failure
ports:
- "8108:8108"
volumes:
- ./typesense-data:/data
command: "--data-dir /data --api-key=${TYPESENSE_API_KEY} --enable-cors"
volumes:
mysql: {}
data: {}