File size: 1,121 Bytes
5463b45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
name: ${T37_PROJECT:-t37-rct-micropark}
services:
  game:
    platform: linux/amd64
    image: t37-rct-micropark:v1
    command: []
    environment:
      MICROPARK_ASSETS_MOUNTED: "1"
      # Unset means the entrypoint's own default of three tries; a small number
      # is how the reset between tries is exercised locally.
      T37_TRIES: "${T37_TRIES:-}"
    build:
      context: ./environment
      dockerfile: Dockerfile
    ports:
      - "127.0.0.1:${WEB_PORT:-6086}:6080"
    volumes:
      - type: bind
        source: ${RCT2_ASSETS:?Set RCT2_ASSETS or use scripts/docker.sh}
        target: /opt/rct2-assets
        read_only: true
        bind:
          create_host_path: false
      - game-data:/home/rct2/.config/OpenRCT2
      - ${T37_ARTIFACTS:-./artifacts}:/artifacts
      - ${T37_ARTIFACTS:-./artifacts}/logs:/logs
    tmpfs:
      - /tmp:size=536870912,mode=1777
    shm_size: 512mb
    stop_grace_period: 15s
    healthcheck:
      test: ["CMD", "curl", "-fsS", "http://127.0.0.1:6080/vnc.html"]
      interval: 10s
      timeout: 3s
      retries: 6
      start_period: 30s
volumes:
  game-data: