aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker-compose.prod.yml
blob: 6865d02a72b8634d8530e40acf6df9ea19c13061 (plain)
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
50
51
version: '3'

services:
  albatross-app:
    build:
      context: ./services/app
      args:
        ALBATROSS_BASE_PATH: $ALBATROSS_BASE_PATH
    ports:
      - '127.0.0.1:8001:80'
    volumes:
      - './services/app/public:/var/www/html/public'
      - './services/app/src:/var/www/html/src'
      - './services/app/templates:/var/www/html/templates'
      - './services/app/php.prod.ini:/usr/local/etc/php/conf.d/php.ini'
      - 'session-data:/tmp/session'
    env_file: .env.prod
    restart: always

  albatross-jobworker:
    build:
      context: ./services/app
    volumes:
      - './services/app/bin:/var/www/html/bin'
      - './services/app/src:/var/www/html/src'
      - './services/app/php.prod.ini:/usr/local/etc/php/conf.d/php.ini'
    entrypoint: 'php bin/jobworker'
    env_file: .env.prod
    restart: always

  albatross-db:
    image: postgres:16.0
    expose:
      - 5432
    volumes:
      - 'db-data:/var/lib/postgresql/data'
    environment:
      POSTGRES_PASSWORD: $ALBATROSS_DB_PASSWORD
    restart: always

  albatross-sandbox-exec:
    build:
      context: ./services/sandbox-exec
    expose:
      - 8888
    env_file: .env.prod
    restart: always

volumes:
  db-data:
  session-data: