-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose-dev.yml
70 lines (64 loc) · 1.4 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
version: '3'
services:
gateway:
image: nginx:1.21.5
container_name: gateway
restart: always
privileged: true
environment:
- TZ=Asia/Shanghai
volumes:
- ./build/deploy/gateway:/etc/nginx/conf.d
- ./data/gateway/log:/var/log/nginx
ports:
- "8000:8000"
web:
image: arklnk/ark-admin:web
container_name: web
volumes:
- ./build/deploy/web:/etc/nginx/conf.d
ports:
- "80:8080"
restart: always
api:
image: arklnk/go:1.18-goctl1.4.1
container_name: api
working_dir: /server
volumes:
- ./:/server
restart: always
tty: true
mysql:
image: mysql:5.7
container_name: mysql
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ark_admin
ports:
- "3306:3306"
volumes:
- ./data/mysql/data:/var/lib/mysql
- ./build/deploy/sql/:/docker-entrypoint-initdb.d/
privileged: true
restart: always
phpmyadmin:
image: phpmyadmin:latest
container_name: phpmyadmin
restart: always
ports:
- "8080:80"
environment:
- PMA_ARBITRARY=1
redis:
image: redis:6.2.5
container_name: redis
ports:
- "6379:6379"
environment:
TZ: Asia/Shanghai
volumes:
- ./data/redis/data:/data:rw
command: "redis-server --requirepass 123456 --appendonly yes"
privileged: true
restart: always