|
@@ -0,0 +1,39 @@
|
|
1
|
+version: '2'
|
|
2
|
+
|
|
3
|
+services:
|
|
4
|
+ postgresql:
|
|
5
|
+ build: ./postgresql
|
|
6
|
+ container_name: gogs-postgresql
|
|
7
|
+# restart: unless-stopped
|
|
8
|
+ networks:
|
|
9
|
+ gogs.internal.docker:
|
|
10
|
+ aliases:
|
|
11
|
+ - postgresql.gogs.internal.docker
|
|
12
|
+ volumes:
|
|
13
|
+ - ./data/postgresql/data:/var/lib/postgresql/data
|
|
14
|
+ - ./data/postgresql/backup:/var/lib/postgresql/backup
|
|
15
|
+ ports:
|
|
16
|
+ - "127.0.0.1:35030:5432"
|
|
17
|
+ env_file:
|
|
18
|
+ - env
|
|
19
|
+
|
|
20
|
+ gogs:
|
|
21
|
+ build: ./gogs
|
|
22
|
+ container_name: gogs-gogs
|
|
23
|
+# restart: unless-stopped
|
|
24
|
+ networks:
|
|
25
|
+ gogs.internal.docker:
|
|
26
|
+ aliases:
|
|
27
|
+ - gogs.gogs.internal.docker
|
|
28
|
+ volumes:
|
|
29
|
+ - ./data/gogs/repositories:/data/git/gogs-repositories
|
|
30
|
+ - ./data/gogs/logs:/app/gogs/log
|
|
31
|
+ - ./data/gogs/conf:/data/gogs/conf
|
|
32
|
+ ports:
|
|
33
|
+ - "127.0.0.1:35021:22"
|
|
34
|
+ - "127.0.0.1:35022:3000"
|
|
35
|
+ env_file:
|
|
36
|
+ - env
|
|
37
|
+
|
|
38
|
+networks:
|
|
39
|
+ gogs.internal.docker:
|