DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: 08cdeb9c3b158d371dfa572be86655ebeef21beb tixe/docker-compose.dev.yaml -rw-r--r-- 968 bytes
08cdeb9cJonni Liljamo fix: update tag check in ci again 11 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
46
47
48
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

  tixeair:
    image: cosmtrek/air
    working_dir: /tixesrc
    container_name: tixeair
    restart: always
    networks:
      - internal
    ports:
      - 8080:8080
    volumes:
      - ./:/tixesrc
    environment:
      TZ: Europe/Helsinki
      GIN_MODE: release # or "debug" for debug logs
      TIXE_PSQL_HOST: tixedb
      TIXE_PSQL_USER: tixe
      TIXE_PSQL_PASSWORD: tixe
      TIXE_PSQL_DB: tixe
      TIXE_COOKIE_SECRET: secret
      TIXE_OIDC_DOMAIN: auth.example.com
      TIXE_OIDC_CLIENTID: tixeclient
      TIXE_OIDC_SECRET: secret
    depends_on:
      - tixedb