-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.develop.yml
52 lines (49 loc) · 1.16 KB
/
docker-compose.develop.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
version: "3"
services:
dcs:
container_name: dcs
image: dcs-dev:latest
build:
context: .
dockerfile: Dockerfile-dev
user: "${UID}:${GID}"
environment:
- USER_UID="${UID}"
- USER_GID="${GID}"
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=db:3306
- GITEA__database__NAME=gitea-release
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
- TAGS=bindata sqlite sqlite_unlock_notify sqlite_json
restart: always
networks:
- gitea
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./data-release:/data
- .:/go/src/code.gitea.io/gitea
ports:
- "${DCS_PORT-3000}:80"
- "222:22"
depends_on:
- db
stdin_open: true # docker run -i
tty: true # docker run -t
db:
platform: linux/x86_64
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea-release
networks:
- gitea
volumes:
- ./mysql:/var/lib/mysql
networks:
gitea:
external: false