-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 920 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 920 Bytes
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
version: '3'
services:
postgres:
image: 'postgres:10-alpine'
restart: always
environment:
- POSTGRES_USER=gogs
- POSTGRES_PASSWORD=testpw
- POSTGRES_DB=gogs
- PGDATA=/var/lib/postgresql/data/db-files/
volumes:
- "./data/db:/var/lib/postgresql/data/"
networks:
- backend
gogs-app:
image: 'gogs/gogs:0.11.53'
restart: always
links:
- postgres
hostname: 'gogs-app'
environment:
- "RUN_CROND=true"
networks:
- backend
- frontend
volumes:
- "./data/gogs:/data"
depends_on:
- postgres
nginx:
image: 'nginx:1.13-alpine'
restart: always
ports:
- 80:80
- 443:443
links:
- gogs-app
volumes:
- ./nginx/sites-enabled/gogs:/etc/nginx/conf.d/gogs.conf:ro
networks:
- frontend
networks:
backend:
driver: bridge
frontend:
driver: bridge