DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: 9024ccc11e6acdd0e6c9e3f5d9f3944c0541445c tixe/docker-compose.yaml -rw-r--r-- 852 bytes
9024ccc1Jonni Liljamo feat: docker compose deployment 1 year, 4 months ago
                                                                                
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
version: "3.8"

networks:
  internal:
    external: false

volumes:
  tixedb_data:
    driver: local

services:
  tixedb:
    image: postgres:15-alpine
    container_name: tixedb
    restart: always
    networks:
      - internal
    volumes:
      - tixedb_data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: tixe
      POSTGRES_PASSWORD: tixe
      POSTGRES_DB: tixe

  tixe:
    build: .
    image: tixe
    container_name: tixe
    restart: always
    networks:
      - internal
    ports:
      - 8080:8080
    environment:
      TZ: Europe/Helsinki
      GIN_MODE: release # or "debug" for debug logs
      TIXE_PSQL_HOST: tixedb
      TIXE_PSQL_PORT: 5432
      TIXE_PSQL_USER: tixe
      TIXE_PSQL_PASSWORD: tixe
      TIXE_PSQL_DB: tixe
      TIXE_OIDC_GITHUB: false
      TIXE_OIDC_CUSTOM: true
    depends_on:
      - tixedb