41 lines
872 B
YAML
41 lines
872 B
YAML
services:
|
|
postgres:
|
|
image: postgres:17
|
|
container_name: molci-db
|
|
restart: unless-stopped
|
|
env_file:
|
|
- ./server/.env
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: ${DB_NAME}
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
gitea:
|
|
image: docker.gitea.com/gitea:1.24.5
|
|
container_name: gitea
|
|
depends_on:
|
|
- postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
USER_UID: 1000
|
|
USER_GID: 1000
|
|
DB_TYPE: postgres
|
|
DB_HOST: postgres:5432
|
|
DB_NAME: ${DB_NAME}
|
|
DB_USER: ${DB_USER}
|
|
DB_PASSWD: ${DB_PASSWORD}
|
|
ports:
|
|
- "3001:3000"
|
|
- "222:22"
|
|
volumes:
|
|
- ./gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
|
volumes:
|
|
postgres_data: |