๐Ÿ“ฆ MaxwellKnight / nes-emulator

๐Ÿ“„ docker-compose.yml ยท 42 lines
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
42x-build-base: &build-base
  build:
    context: .
    dockerfile: Dockerfile
  volumes:
    - .:/app
  restart: "no"

x-web-base: &web-base
  image: python:3-alpine
  volumes:
    - ./web:/app/web
  working_dir: /app
  command: python -m http.server 5173 --directory /app/web

services:
  # Development services
  dev:
    <<: *build-base
    profiles: [dev]
    command: build_all.sh

  test:
    <<: *build-base
    profiles: [dev, test]
    command: build_and_test.sh

  shell:
    <<: *build-base
    profiles: [dev]
    command: /bin/bash
    tty: true
    stdin_open: true

  # Web server for development
  web-dev:
    <<: *web-base
    profiles: [dev]
    restart: "no"
    ports:
      - "5173:5173"