33 lines
618 B
YAML
33 lines
618 B
YAML
services:
|
|
web:
|
|
image: 'gogs/gogs:0.12.3'
|
|
restart: always
|
|
hostname: gogs
|
|
ports:
|
|
- '42070:3000'
|
|
- '42071:22'
|
|
volumes:
|
|
- '/home/pablo/gogs/data:/data'
|
|
links:
|
|
- postgres
|
|
networks:
|
|
- gogs
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:13.4
|
|
restart: always
|
|
environment:
|
|
- "POSTGRES_USER=${POSTGRES_USER}"
|
|
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
|
- "POSTGRES_DB=gogs"
|
|
volumes:
|
|
- "/home/pablo/gogs/postgres_data:/var/lib/postgresql/data"
|
|
networks:
|
|
- gogs
|
|
|
|
|
|
networks:
|
|
gogs:
|
|
driver: bridge
|