-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose-dev.yml
71 lines (71 loc) · 1.75 KB
/
docker-compose-dev.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
68
69
70
71
version: '3'
services:
daemon:
build: .
command: sh dk_init.sh
volumes:
- .:/app
networks:
- default-network
web:
build: ../muchat-react
ports:
- "0.0.0.0:3000:80"
# command: sh -c "sh dk_init.sh && yarn start"
networks:
- default-network
environment:
# - REACT_APP_HOSTNAME=${REACT_APP_HOSTNAME}
- REACT_APP_API_ENDPOINT=${REACT_APP_API_ENDPOINT}
# command: sleep 999999
admin:
build: ../muchat-laravel
ports:
- "0.0.0.0:8000:8000"
- "5173:5173"
networks:
- default-network
depends_on:
- db
command: sh -c "/wait && sh dk_init.sh && php artisan serve --host=0.0.0.0"
# command: sh -c "/wait && sleep 999999"
environment:
- WAIT_HOSTS=db:3306
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=3
- WAIT_HOST_CONNECT_TIMEOUT=3
- DB_HOST=db
api:
build: ../muchat-go
ports:
- "0.0.0.0:8080:8080"
networks:
- default-network
depends_on:
- db
command: sh -c "/wait && ./bin/go_another_chatgpt"
# command: sh -c "/wait && sleep 999999"
environment:
- WAIT_HOSTS=db:3306
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=3
- WAIT_HOST_CONNECT_TIMEOUT=3
- DB_HOST=db
- DB_NAME=muchat
- AP_BASE_URL=https://api.openai.com/v1/
db:
image: mysql:8.0
volumes:
- ../muchat-laravel/docker/db:/docker-entrypoint-initdb.d
# ports:
# - "3307:3306"
networks:
- default-network
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: muchat
MYSQL_USER: ubuntu
MYSQL_PASSWORD: ubuntu
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
networks:
default-network: