forked from reworkd/AgentGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.27 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
version: '3.9'
services:
next:
container_name: next
build:
context: ./next
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./next/.env:/next/.env
- ./next/:/next/
- /next/node_modules
- /next/.next
platform:
container_name: platform
build:
context: ./platform
target: prod
ports:
- "8000:8000"
restart: always
volumes:
- ./platform:/app/src/
env_file:
- next/.env
environment:
REWORKD_PLATFORM_HOST: 0.0.0.0
REWORKD_PLATFORM_DB_HOST: db
REWORKD_PLATFORM_DB_PORT: "3307"
REWORKD_PLATFORM_DB_USER: "reworkd_platform"
REWORKD_PLATFORM_DB_PASS: "reworkd_platform"
REWORKD_PLATFORM_DB_BASE: "reworkd_platform"
depends_on:
- db
db:
image: mysql:8.0
container_name: db
restart: always
build:
context: ./db
ports:
- "3307:3307"
environment:
MYSQL_DATABASE: "reworkd_platform"
MYSQL_USER: "reworkd_platform"
MYSQL_PASSWORD: "reworkd_platform"
MYSQL_ROOT_PASSWORD: "reworkd_platform"
MYSQL_TCP_PORT: 3307
volumes:
- db_data:/var/lib/mysql
command: [ 'mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
volumes:
db_data: